diff --git a/deploy/003-mintable-token-bridge-local.ts b/deploy/003-mintable-token-bridge-local.ts index fa8759a..864edcb 100644 --- a/deploy/003-mintable-token-bridge-local.ts +++ b/deploy/003-mintable-token-bridge-local.ts @@ -55,7 +55,7 @@ const configureMultichainTokenMintCapCommands = async ( contract: token, signature: "setMintCap(address,uint256)", argTypes: ["address", "uint256"], - parameters: [minterAddress, "100000000000000000000"], + parameters: [minterAddress, "100000000000000000000000"], value: 0, }, ]; @@ -130,8 +130,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { await executeBridgeCommands(bridge, hre, deployer); - const removeArray = new Array(multichainTokenMethods.length).fill(true); - let tx = await bridgeAdmin.upsertSignature(multichainTokenMethods, removeArray); + const removeArray = new Array(mintableTokenBridgeMethods.length).fill(true); + let tx = await bridgeAdmin.upsertSignature(mintableTokenBridgeMethods, removeArray); await tx.wait(); tx = await bridge.transferOwnership(TokenBridgeAdmin.address); @@ -185,7 +185,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { }, { - contract: MintableTokenBridge.address, + contract: TokenBridgeAdmin.address, signature: "setTrustedRemoteAddress(uint16,bytes)", parameters: [preconfiguredAddresses.LzVirtualChainIdL, "0xDestAddress"], value: 0, diff --git a/deploy/003-mintable-token-bridge-remote.ts b/deploy/003-mintable-token-bridge-remote.ts index b05ac24..7d993f6 100644 --- a/deploy/003-mintable-token-bridge-remote.ts +++ b/deploy/003-mintable-token-bridge-remote.ts @@ -55,7 +55,7 @@ const configureMultichainTokenMintCapCommands = async ( contract: token, signature: "setMintCap(address,uint256)", argTypes: ["address", "uint256"], - parameters: [minterAddress, "100000000000000000000"], + parameters: [minterAddress, "100000000000000000000000"], value: 0, }, ]; @@ -126,12 +126,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const bridge = await ethers.getContract("MintableTokenBridgeDestVAI"); const bridgeAdmin = await ethers.getContract("TokenBridgeAdminDestVAI"); - const token = await ethers.getContract("MultichainToken"); + const token = await ethers.getContract("VAI"); await executeBridgeCommands(bridge, hre, deployer); - const removeArray = new Array(multichainTokenMethods.length).fill(true); - let tx = await bridgeAdmin.upsertSignature(multichainTokenMethods, removeArray); + const removeArray = new Array(mintableTokenBridgeMethods.length).fill(true); + let tx = await bridgeAdmin.upsertSignature(mintableTokenBridgeMethods, removeArray); await tx.wait(); tx = await token.transferOwnership(preconfiguredAddresses.NormalTimelock); diff --git a/helpers/deploymentConfig.ts b/helpers/deploymentConfig.ts index 1b9473a..0a905f0 100644 --- a/helpers/deploymentConfig.ts +++ b/helpers/deploymentConfig.ts @@ -145,10 +145,10 @@ export const bridgeConfig: BridgeConfig = { bsctestnet: { methods: [ { method: "setMinDstGas(uint16,uint16,uint256)", args: [10161, 0, "300000"] }, - { method: "setMaxDailyLimit(uint16,uint256)", args: [10161, "500000000000000000000"] }, - { method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10161, "10000000000000000000"] }, - { method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10161, "500000000000000000000"] }, - { method: "setMaxSingleReceiveTransactionLimit(uint16,uint256)", args: [10161, "10000000000000000000"] }, + { method: "setMaxDailyLimit(uint16,uint256)", args: [10161, "50000000000000000000000"] }, + { method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10161, "10000000000000000000000"] }, + { method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10161, "50000000000000000000000"] }, + { method: "setMaxSingleReceiveTransactionLimit(uint16,uint256)", args: [10161, "10000000000000000000000"] }, ], }, bscmainnet: { @@ -163,10 +163,10 @@ export const bridgeConfig: BridgeConfig = { sepolia: { methods: [ { method: "setMinDstGas(uint16,uint16,uint256)", args: [10102, 0, "300000"] }, - { method: "setMaxDailyLimit(uint16,uint256)", args: [10102, "500000000000000000000"] }, - { method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000"] }, - { method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10102, "500000000000000000000"] }, - { method: "setMaxSingleReceiveTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000"] }, + { method: "setMaxDailyLimit(uint16,uint256)", args: [10102, "50000000000000000000000"] }, + { method: "setMaxSingleTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000000"] }, + { method: "setMaxDailyReceiveLimit(uint16,uint256)", args: [10102, "50000000000000000000000"] }, + { method: "setMaxSingleReceiveTransactionLimit(uint16,uint256)", args: [10102, "10000000000000000000000"] }, ], }, ethereum: {