Skip to content

Commit

Permalink
adjust gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchengzhu committed Dec 6, 2023
1 parent 752e25f commit 48fc83b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/test/nativeTransfer_gw.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ let gasPrice, gasPriceHex, faucetAccount, EOA0, EOA1, newEOA0, CA0

if (!(isGwMainnetV1() || isAxon())) {
gasPrice = (await ethers.provider.getFeeData()).gasPrice
gasPriceHex = "0x" + gasPrice.toString(16);
const gasPriceNumber = Number(gasPrice)
const adjustedGasPrice = Math.round(gasPriceNumber * 1.1)
gasPriceHex = "0x" + adjustedGasPrice.toString(16);
//external account0 and external account1 get a fixed balance
const signers = await ethers.getSigners();
faucetAccount = signers[0].address;
Expand Down

0 comments on commit 48fc83b

Please sign in to comment.