diff --git a/script/SetSeed.s.sol b/script/SetSeed.s.sol index 177cdb0..f512bf4 100644 --- a/script/SetSeed.s.sol +++ b/script/SetSeed.s.sol @@ -24,13 +24,17 @@ contract SetSeed is Script { string memory btcAddr2 = vm.envString("BTC_ADDR2"); console.log("BTC_ADDR2:", btcAddr2); + // get network + uint network = vm.envUint("Network"); + console.log("Network:", network); + BTCDepositAddressDeriver deriver = BTCDepositAddressDeriver( contractAddress ); // set validators' pubkeys and network prefix vm.startBroadcast(); - deriver.setSeed(btcAddr1, btcAddr2, BTCDepositAddressDeriver.BitcoinNetwork.REGTEST); + deriver.setSeed(btcAddr1, btcAddr2, BTCDepositAddressDeriver.BitcoinNetwork(network)); vm.stopBroadcast(); } }