Skip to content

Commit

Permalink
nojira [no-changelog] fix gas override bug (#1265)
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Li <[email protected]>
  • Loading branch information
frankisawesome authored Dec 8, 2023
1 parent fd1e7e0 commit 37a46ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/orderbook/src/test/fulfillBulk.demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ import {
getConfigFromEnv,
} from './helpers';
import { actionAll } from './helpers/actions';
import { GAS_OVERRIDES } from './helpers/gas';

async function deployAndMintNftContract(wallet: Wallet, count?: number): Promise<TestToken> {
const { contract } = await deployTestToken(wallet);
log('contract deployed');
if (count) {
for (let i = 0; i < count; i += 1) {
// eslint-disable-next-line no-await-in-loop
const receipt = await contract.safeMint(wallet.address);
const receipt = await contract.safeMint(wallet.address, GAS_OVERRIDES);
// eslint-disable-next-line no-await-in-loop
await receipt.wait();
log('token minted');
Expand Down
4 changes: 2 additions & 2 deletions packages/orderbook/src/test/helpers/gas.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BigNumber } from 'ethers';

export const GAS_OVERRIDES = {
maxFeePerGas: BigNumber.from(102e9),
maxPriorityFeePerGas: BigNumber.from(101e9),
maxFeePerGas: BigNumber.from(102e8),
maxPriorityFeePerGas: BigNumber.from(101e8),
};

0 comments on commit 37a46ba

Please sign in to comment.