Skip to content

Commit

Permalink
fix compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Nov 12, 2024
1 parent 1eb94f4 commit f8a1791
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/ZeusScript.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,18 @@ abstract contract ZeusScript is Script {
*/
// NOTE: you do not need to use these for contract addresses, which are tracked and injected automatically.
// NOTE: do not use `.update()` during a vm.broadcast() segment.
function update(string memory key, string memory value) {
function update(string memory key, string memory value) public {
emit ZeusEnvironmentUpdate(key, EnvironmentVariableType.STRING, abi.encode(value));
}

function update(string memory key, address memory value) {
function update(string memory key, address value) public {
emit ZeusEnvironmentUpdate(key, EnvironmentVariableType.ADDRESS, abi.encode(value));
}

function update(string memory key, uint256 memory value) {
function update(string memory key, uint256 value) public {
emit ZeusEnvironmentUpdate(key, EnvironmentVariableType.INT_256, abi.encode(value));
}

/**
*
*/
Expand Down

0 comments on commit f8a1791

Please sign in to comment.