Sitelet https://github.com/SharkHand3/examples/commit/685e3afab5a63370e939cdd51764ec3f9ffbfae1
Skip to content

Commit 685e3af

Browse files
authored
fix(txs): permit2_sig by using last two anvil accounts (alloy-rs#221)
1 parent f6d50e0 commit 685e3af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/transactions/examples/permit2_signature_transfer.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ async fn main() -> Result<()> {
6767
let anvil = Anvil::new().fork(rpc_url).try_spawn()?;
6868

6969
// Set up signers from the first two default Anvil accounts (Alice, Bob).
70-
let alice: PrivateKeySigner = anvil.keys()[0].clone().into();
71-
let bob: PrivateKeySigner = anvil.keys()[1].clone().into();
70+
let alice: PrivateKeySigner = anvil.keys()[8].clone().into();
71+
let bob: PrivateKeySigner = anvil.keys()[9].clone().into();
7272

7373
// We can manage multiple signers with the same wallet
7474
let mut wallet = EthereumWallet::new(alice.clone());

0 commit comments

Comments
 (0)