From 37a46ba2bf95dd5bd901afc2505d445d5234331a Mon Sep 17 00:00:00 2001 From: Frank Li Date: Fri, 8 Dec 2023 11:27:32 +1100 Subject: [PATCH] nojira [no-changelog] fix gas override bug (#1265) Signed-off-by: Frank Li --- packages/orderbook/src/test/fulfillBulk.demo.ts | 3 ++- packages/orderbook/src/test/helpers/gas.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/orderbook/src/test/fulfillBulk.demo.ts b/packages/orderbook/src/test/fulfillBulk.demo.ts index bc29b5b38d..1849b470c2 100644 --- a/packages/orderbook/src/test/fulfillBulk.demo.ts +++ b/packages/orderbook/src/test/fulfillBulk.demo.ts @@ -14,6 +14,7 @@ import { getConfigFromEnv, } from './helpers'; import { actionAll } from './helpers/actions'; +import { GAS_OVERRIDES } from './helpers/gas'; async function deployAndMintNftContract(wallet: Wallet, count?: number): Promise { const { contract } = await deployTestToken(wallet); @@ -21,7 +22,7 @@ async function deployAndMintNftContract(wallet: Wallet, count?: number): Promise 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'); diff --git a/packages/orderbook/src/test/helpers/gas.ts b/packages/orderbook/src/test/helpers/gas.ts index e4323d762a..e30a72c6a3 100644 --- a/packages/orderbook/src/test/helpers/gas.ts +++ b/packages/orderbook/src/test/helpers/gas.ts @@ -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), };