Skip to content

Commit

Permalink
fix: bigint
Browse files Browse the repository at this point in the history
  • Loading branch information
zkbenny committed May 28, 2024
1 parent 64d300c commit e8c1afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/scroll/scripts/changeFeeParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ task('changeFeeParams', 'Change fee params for zkLink').setAction(async (taskArg
*/
const zkLink = await hre.ethers.getContractFactory('ZkLink');
const { INIT_FEE_PARAMS } = require('../../../script/zksync_era');
const zkLinkCallValue = 0;
const zkLinkCallValue = BigInt(0);
const zkLinkCallData = zkLink.interface.encodeFunctionData('changeFeeParams', [INIT_FEE_PARAMS]);
const l2GatewayFactory = await hre.ethers.getContractFactory('ScrollL2Gateway');
const l2GatewayCallData = l2GatewayFactory.interface.encodeFunctionData('claimMessageCallback', [
Expand Down
2 changes: 1 addition & 1 deletion examples/scroll/scripts/setValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ task('setValidator', 'Set validator for zkLink')
* finalizeMessageGasLimit: the gas limit for the L2 to finalize the message.
*/
const zkLink = await hre.ethers.getContractFactory('ZkLink');
const zkLinkCallValue = 0;
const zkLinkCallValue = BigInt(0);
const zkLinkCallData = zkLink.interface.encodeFunctionData('setValidator', [validatorAddr, isActive]);
const l2GatewayFactory = await hre.ethers.getContractFactory('ScrollL2Gateway');
const l2GatewayCallData = l2GatewayFactory.interface.encodeFunctionData('claimMessageCallback', [
Expand Down

0 comments on commit e8c1afd

Please sign in to comment.