@@ -2,16 +2,14 @@ const address = require('../hardhat/helper/address');
22
33module . exports = async function ( hre ) { // HardhatRuntimeEnvironment
44 const { getNamedAccounts, deployments, network} = hre ;
5- const { deployer, bridgeProxy} = await getNamedAccounts ( ) ;
6-
5+ const { deployer, wrappedCurrency, bridgeProxy} = await getNamedAccounts ( ) ;
76 const { log} = deployments ;
87
98 if ( bridgeProxy ) {
109 return ;
1110 }
1211
1312 const Bridge = await deployments . getArtifact ( 'BridgeV4' ) ;
14- const WRBTC = await deployments . getArtifact ( 'WRBTC' ) ;
1513 const BridgeProxy = await deployments . get ( 'BridgeProxy' ) ;
1614 const MultiSigWallet = await deployments . getArtifact ( 'MultiSigWallet' ) ;
1715
@@ -36,7 +34,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
3634 await multiSigContract . methods . submitTransaction ( AllowTokensProxy . address , 0 , methodCallSetToken . encodeABI ( ) ) . send ( { from : deployer } ) ;
3735 log ( `MultiSig submitTransaction set token WRBTC in AllowTokens` ) ;
3836 } else {
39- const methodCallSetWrappedCurrency = bridge . methods . setWrappedCurrency ( WRBTC . address ) ;
37+ const methodCallSetWrappedCurrency = bridge . methods . setWrappedCurrency ( wrappedCurrency ) ;
4038 await methodCallSetWrappedCurrency . call ( { from : multiSigAddress } ) ;
4139 await multiSigContract . methods . submitTransaction ( BridgeProxy . address , 0 , methodCallSetWrappedCurrency . encodeABI ( ) ) . send ( { from : deployer } ) ;
4240 log ( `MultiSig submitTransaction set Wrapped Currency in the Bridge` ) ;
0 commit comments