Skip to content

Commit

Permalink
removed gas limit param
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Oct 3, 2024
1 parent 231e856 commit 6e40182
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
8 changes: 0 additions & 8 deletions examples/hello/tasks/callFromEVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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",
Expand Down
8 changes: 1 addition & 7 deletions examples/hello/tasks/callFromZetachain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 6e40182

Please sign in to comment.