Skip to content

Commit

Permalink
fix: add default mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpawlowski committed Mar 29, 2024
1 parent 33dab2b commit 1dd6f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/Utils.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import "forge-std/Script.sol";

contract Utils is Script {
function startBroadcast() internal {
uint256 anvilPrivateKey = vm.deriveKey(vm.envString("ANVIL_MNEMONIC"), 0);
string memory defaultMnemonic = "test test test test test test test test test test test junk";
uint256 anvilPrivateKey = vm.deriveKey(vm.envOr("ANVIL_MNEMONIC", defaultMnemonic), 0);
uint256 deployerPrivateKey = vm.envOr("DEPLOYER_KEY", uint256(1));
address deployer = vm.addr(deployerPrivateKey);

Expand Down

0 comments on commit 1dd6f6e

Please sign in to comment.