Skip to content

Commit

Permalink
Update env-bytes32.md (#1355)
Browse files Browse the repository at this point in the history
The examples for envBytes32 were using cheats.envBytes32 instead of vm.envBytes32.
  • Loading branch information
adamocallaghan authored Nov 14, 2024
1 parent 189c880 commit 8a177d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cheatcodes/env-bytes32.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ With environment variable `BYTES32_VALUE=0x00`,
```solidity
string memory key = "BYTES32_VALUE";
bytes32 expected = bytes32(0x0000000000000000000000000000000000000000000000000000000000000000);
bytes32 output = cheats.envBytes32(key);
bytes32 output = vm.envBytes32(key);
assert(output == expected);
```

Expand All @@ -38,6 +38,6 @@ bytes32[2] memory expected = [
bytes32(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D000000000000000000000000),
bytes32(0x0000000000000000000000000000000000000000000000000000000000000000)
];
bytes32[] memory output = cheats.envBytes32(key, delimiter);
bytes32[] memory output = vm.envBytes32(key, delimiter);
assert(keccak256(abi.encodePacked((output))) == keccak256(abi.encodePacked((expected))));
```

0 comments on commit 8a177d0

Please sign in to comment.