Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: tomg10 <[email protected]>
  • Loading branch information
tomg10 committed Sep 10, 2024
1 parent 1780f9e commit 9ba13c6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions core/tests/ts-integration/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as zksync from 'zksync-ethers';
import * as ethers from 'ethers';
import * as hre from 'hardhat';
import { ZkSyncArtifact } from '@matterlabs/hardhat-zksync-solc/dist/src/types';
import { sleep } from 'utils';

export const SYSTEM_CONTEXT_ADDRESS = '0x000000000000000000000000000000000000800b';

Expand Down Expand Up @@ -142,10 +143,8 @@ export function bigIntMax(...args: bigint[]) {
return args.reduce((max, current) => (current > max ? current : max), args[0]);
}

export function goodGasPrice(): ethers.Overrides {
let overrides: ethers.Overrides = {};
overrides.maxPriorityFeePerGas = 0;
// big enough so that transaction can never fail
overrides.maxFeePerGas = 1_000_000_000;
return overrides;
export async function waitForIncreasedL1Nonce(nonce: number, account: zksync.Wallet) {
while ((await account._signerL1().getNonce()) == nonce) {
await sleep(0.1);
}
}

0 comments on commit 9ba13c6

Please sign in to comment.