slotmachine icon indicating copy to clipboard operation
slotmachine copied to clipboard

issue: test not running?

Open wei3erHase opened this issue 1 year ago • 1 comments

getting the following log when running ./slotmachine.sh Counter and forge test -vvv

--------
  
[SLOT] 0x0bec8ab077af1e12783ac8c970bca6dada042613c1ff87b4d0953dea6b0115fd 
[VALUE] 0x0000000000000000000000000000000000000000000000000000000000001234 
=> [keccack] 0xd80ad16edadc649234107b79b30fd0bd6b3dc724d12ebb3a6c085b65ac3620b2 [!OK!]
  

--------
  
[SLOT] 0x0bec8ab077af1e12783ac8c970bca6dada042613c1ff87b4d0953dea6b011600 
[VALUE] 0x0000000000000000000000000000000000000000000000000000000000000000 
=> [keccack] 0x5935cfefbbd8605fc2d5027f8ea298804734a63f6e8acc97a88d646e14f53be0 [!OK!]
  

--------
  
[SLOT] 0x5935cfefbbd8605fc2d5027f8ea298804734a63f6e8acc97a88d646e14f53be0 
[VALUE] 0x0000000000000000000000000000000000000000000000000000000000000000 
=> [keccack] 0xe0a0cdcf88a393a2db0b6bdb7abb6d52da1e1500c3523dc023b9046db782d20f [!OK!]
  

--------
  
[SLOT] 0x2031468f0c30f7087de4da9398818763b546d7f89935fa65485c24ff1df26bf4 
[VALUE] 0x0000000000000000000000000000000000000000000000000000000000077777 
=> [keccack] 0xed45ccd09931c6e422f2b385da45ff76edb71aea2a6e834fb421dde2ffe89b76 [!ALERT!]


Failing tests:
Encountered 1 failing test in test/SlotMachine.t.sol:CounterStorageTest
[FAIL. Reason: SLOTMACHINE_SSTORE_ALERT(0xed45ccd09931c6e422f2b385da45ff76edb71aea2a6e834fb421dde2ffe89b76)] testMapping() (gas: 1051524)

i'm failing to understand when it has so many entries as slot,value, and how to whitelist the one that's failing

interesting idea btw, is it only for testing or prod contracts?

wei3erHase avatar Apr 12 '23 19:04 wei3erHase