diff --git a/examples/hello/tasks/callFromEVM.ts b/examples/hello/tasks/callFromEVM.ts index f4cb53be..04cf689c 100644 --- a/examples/hello/tasks/callFromEVM.ts +++ b/examples/hello/tasks/callFromEVM.ts @@ -48,8 +48,6 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => { valuesArray ); - const gasLimit = hre.ethers.BigNumber.from(args.gasLimit); - const factory = (await hre.ethers.getContractFactory(args.name)) as any; const contract = factory.attach(args.contract); @@ -67,12 +65,6 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => { task("call-from-evm", "Calls the gateway on a contract on EVM", main) .addParam("contract", "The address of the deployed contract") - .addOptionalParam( - "gasLimit", - "Gas limit for for a cross-chain call", - 7000000, - types.int - ) .addOptionalParam( "txOptionsGasPrice", "The gas price for the transaction", diff --git a/examples/hello/tasks/callFromZetachain.ts b/examples/hello/tasks/callFromZetachain.ts index 7110fbc2..fe707321 100644 --- a/examples/hello/tasks/callFromZetachain.ts +++ b/examples/hello/tasks/callFromZetachain.ts @@ -55,7 +55,7 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => { ethers.utils.concat([functionSignature, encodedParameters]) ); - const gasLimit = hre.ethers.BigNumber.from(args.gasLimit); + const gasLimit = hre.ethers.BigNumber.from(args.txOptionsGasLimit); const zrc20 = new ethers.Contract(args.zrc20, ZRC20ABI.abi, signer); const [, gasFee] = await zrc20.withdrawGasFeeWithGasLimit(gasLimit); const zrc20TransferTx = await zrc20.transfer( @@ -90,12 +90,6 @@ task( ) .addParam("contract", "The address of the deployed Hello contract") .addParam("zrc20", "The address of ZRC-20 to pay fees") - .addOptionalParam( - "gasLimit", - "Gas limit for for a cross-chain call", - 7000000, - types.int - ) .addOptionalParam( "txOptionsGasPrice", "The gas price for the transaction",