File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ impl<P: Provider<AnyNetwork>> Cast<P> {
114
114
/// use cast::Cast;
115
115
/// use alloy_provider::{RootProvider, ProviderBuilder, network::AnyNetwork};
116
116
/// use std::{str::FromStr, collections::HashMap};
117
+ /// use alloy_rpc_types::state::StateOverridesBuilder;
117
118
/// use alloy_sol_types::{sol, SolCall};
118
119
///
119
120
/// sol!(
@@ -133,7 +134,7 @@ impl<P: Provider<AnyNetwork>> Cast<P> {
133
134
/// let mut account_override = AccountOverride::default();
134
135
/// account_override.balance = Some(U256::from(1000));
135
136
/// state_override.insert(to, account_override);
136
- /// let state_override_object = Some(state_override );
137
+ /// let state_override_object = StateOverridesBuilder::default().build( );
137
138
///
138
139
/// let cast = Cast::new(alloy_provider);
139
140
/// let data = cast.call(&tx, None, None, state_override_object).await?;
You can’t perform that action at this time.
0 commit comments