Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Nov 13, 2024
1 parent 85b3abf commit 06be0c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/ZeusScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ abstract contract ZeusScript is Script {
return vm.envAddress(key);
}

/**
* Returns a uin32 set in the current environment.
* @param key The environment key. Corresponds to a ZEUS_* env variable.
*/
function zUint32(string memory key) public view returns (uint32) {
string memory envvar = envPrefix.concat(key);
return uint32(vm.envUint(envvar));
}

/**
* Returns a uin64 set in the current environment.
* @param key The environment key. Corresponds to a ZEUS_* env variable.
Expand Down

0 comments on commit 06be0c7

Please sign in to comment.