axelarnetwork / axelar-gmp-sdk-solidity

Solidity libraries and utilities provided by Axelar.
27 stars 32 forks source link

Raise constAddressDeployer gasLimit multiplier #18

Closed 0x1NotMe closed 1 year ago

0x1NotMe commented 1 year ago

I was trying to deploy a contract using the constAddressDeployer (deployContractConstant) But I was getting some error which wasn't particular useful upon further investigation I realised that Arbitrum gas usage works different than other EVM and L1 calldata adds overhead so that the current multiplier was insufficient.

const tx = await deployer
    .connect(wallet)
    .deploy(bytecode, salt, { gasLimit: BigInt(Math.floor(gas * 1.2)) });

I could deploy by increasing the multiplier to 2

re1ro commented 1 year ago

Thank you @0x1NotMe ! Will be fixed in this PR #19