@@ -2,16 +2,14 @@ const address = require('../hardhat/helper/address');
2
2
3
3
module . exports = async function ( hre ) { // HardhatRuntimeEnvironment
4
4
const { getNamedAccounts, deployments, network} = hre ;
5
- const { deployer, bridgeProxy} = await getNamedAccounts ( ) ;
6
-
5
+ const { deployer, wrappedCurrency, bridgeProxy} = await getNamedAccounts ( ) ;
7
6
const { log} = deployments ;
8
7
9
8
if ( bridgeProxy ) {
10
9
return ;
11
10
}
12
11
13
12
const Bridge = await deployments . getArtifact ( 'BridgeV4' ) ;
14
- const WRBTC = await deployments . getArtifact ( 'WRBTC' ) ;
15
13
const BridgeProxy = await deployments . get ( 'BridgeProxy' ) ;
16
14
const MultiSigWallet = await deployments . getArtifact ( 'MultiSigWallet' ) ;
17
15
@@ -36,7 +34,7 @@ module.exports = async function (hre) { // HardhatRuntimeEnvironment
36
34
await multiSigContract . methods . submitTransaction ( AllowTokensProxy . address , 0 , methodCallSetToken . encodeABI ( ) ) . send ( { from : deployer } ) ;
37
35
log ( `MultiSig submitTransaction set token WRBTC in AllowTokens` ) ;
38
36
} else {
39
- const methodCallSetWrappedCurrency = bridge . methods . setWrappedCurrency ( WRBTC . address ) ;
37
+ const methodCallSetWrappedCurrency = bridge . methods . setWrappedCurrency ( wrappedCurrency ) ;
40
38
await methodCallSetWrappedCurrency . call ( { from : multiSigAddress } ) ;
41
39
await multiSigContract . methods . submitTransaction ( BridgeProxy . address , 0 , methodCallSetWrappedCurrency . encodeABI ( ) ) . send ( { from : deployer } ) ;
42
40
log ( `MultiSig submitTransaction set Wrapped Currency in the Bridge` ) ;
0 commit comments