Skip to content

Commit

Permalink
pick network from env
Browse files Browse the repository at this point in the history
  • Loading branch information
szhygulin committed May 22, 2024
1 parent 5f14a00 commit 25360be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/SetSeed.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 25360be

Please sign in to comment.