Skip to content

Commit

Permalink
Add case for sha3
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Oct 28, 2023
1 parent 9f6bf4f commit 5216af7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixture-projects/hardhat-project/contracts/Hello.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ contract Hello {

uint256 heyy = 3;

mapping(address => uint256) hello_world;

struct Person {
string name;
uint256 age;
Expand Down Expand Up @@ -144,6 +146,7 @@ contract Hello {

function playWithOpcodes() public {
address someAddr = address(this);
hello_world[someAddr] = 420;
assembly {
let size := extcodesize(someAddr)
let h := extcodehash(someAddr)
Expand Down

0 comments on commit 5216af7

Please sign in to comment.