Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix broken test due to broken implementation of evm_setAccountNonce
Browse files Browse the repository at this point in the history
`evm_setAccountNonce` will be fixed in another PR
  • Loading branch information
davidmurdoch committed Nov 23, 2021
1 parent fffe201 commit c4a5e5a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/chains/ethereum/ethereum/tests/forking/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ export const updateRemotesAccountNonces = async (
remoteAccounts: string[]
) => {
// sets different starting nonces for each account
await Promise.all(
remoteAccounts.map((account, i) =>
remoteProvider.send("evm_setAccountNonce", [
account,
`0x${(i + 1).toString(16)}`
])
)
);
for (let i = 0; i < remoteAccounts.length; i++) {
const account = remoteAccounts[i];
await remoteProvider.send("evm_setAccountNonce", [
account,
`0x${(i + 1).toString(16)}`
]);
}
};

export const startLocalChain = async (
Expand Down

0 comments on commit c4a5e5a

Please sign in to comment.