diff --git a/examples/optimism/scripts/changeFeeParams.js b/examples/optimism/scripts/changeFeeParams.js index cbdc18c..ef6cf2f 100644 --- a/examples/optimism/scripts/changeFeeParams.js +++ b/examples/optimism/scripts/changeFeeParams.js @@ -60,11 +60,7 @@ task('changeFeeParams', 'Change fee params for zkLink').setAction(async (taskArg const adapterParams = ethers.utils.defaultAbiCoder.encode(['uint256'], [minGasLimit]); const { INIT_FEE_PARAMS } = require('../../../script/zksync_era'); console.log('Prepare to forward the message to L2...'); - let tx = await arbitrator.changeFeeParams(optimismL1GatewayAddr, INIT_FEE_PARAMS, adapterParams, { - maxFeePerGas: 200000000000, // 200 Gwei - maxPriorityFeePerGas: 5000000000, // 5 Gwei - gasLimit: 5000000, - }); + let tx = await arbitrator.changeFeeParams(optimismL1GatewayAddr, INIT_FEE_PARAMS, adapterParams); const txHash = tx.hash; await tx.wait(); console.log(`The tx hash: ${txHash}`); diff --git a/examples/optimism/scripts/setValidator.js b/examples/optimism/scripts/setValidator.js index d75c3e2..943758d 100644 --- a/examples/optimism/scripts/setValidator.js +++ b/examples/optimism/scripts/setValidator.js @@ -66,11 +66,7 @@ task('setValidator', 'Set validator for zkLink') const minGasLimit = 200000; const adapterParams = ethers.utils.defaultAbiCoder.encode(['uint256'], [minGasLimit]); console.log('Prepare to forward the message to L2...'); - let tx = await arbitrator.setValidator(optimismL1GatewayAddr, validatorAddr, isActive, adapterParams, { - maxFeePerGas: 200000000000, // 200 Gwei - maxPriorityFeePerGas: 5000000000, // 5 Gwei - gasLimit: 5000000, - }); + let tx = await arbitrator.setValidator(optimismL1GatewayAddr, validatorAddr, isActive, adapterParams); const txHash = tx.hash; await tx.wait(); console.log(`The tx hash: ${txHash}`); diff --git a/examples/optimism/scripts/syncBatchRoot.js b/examples/optimism/scripts/syncBatchRoot.js index 944114e..9c749df 100644 --- a/examples/optimism/scripts/syncBatchRoot.js +++ b/examples/optimism/scripts/syncBatchRoot.js @@ -80,10 +80,7 @@ task('syncBatchRoot', 'Forward message to L2').setAction(async (taskArgs, hre) = const minGasLimit = 200000; const adapterParams = ethers.utils.defaultAbiCoder.encode(['uint256'], [minGasLimit]); console.log('Prepare to forward the message to L2...'); - let tx = await arbitrator.forwardMessage(optimismL1GatewayAddr, 0, executeCalldata, adapterParams, { - maxFeePerGas: 10000000000, - maxPriorityFeePerGas: 5000000000, - }); + let tx = await arbitrator.forwardMessage(optimismL1GatewayAddr, 0, executeCalldata, adapterParams); const txHash = tx.hash; await tx.wait(); console.log(`The tx hash: ${txHash}`);