Skip to content

Commit

Permalink
ethereum/relayer: fix storage constant comments
Browse files Browse the repository at this point in the history
The hash preimages for storage calculations were wrong for two storage
slots. The updated preimages can be verified to be correct with e.g. the
`chisel` command line tool from the foundry suite.
  • Loading branch information
kcsongor authored and evan-gray committed Sep 18, 2023
1 parent bb8873f commit 4d51f8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct DefaultDeliveryProviderState {
address defaultDeliveryProvider;
}

//keccak256("DefaultDeliveryProviderState") - 1
//keccak256("DefaultRelayProviderState") - 1
bytes32 constant DEFAULT_RELAY_PROVIDER_STORAGE_SLOT =
0xebc28a1927f62765bfb7ada566eeab2d31a98c65dbd1e8cad64acae2a3ae45d4;

Expand All @@ -49,7 +49,7 @@ struct RegisteredWormholeRelayersState {
mapping(uint16 => bytes32) registeredWormholeRelayers;
}

//keccak256("RegisteredWormholeRelayersState") - 1
//keccak256("RegisteredCoreRelayersState") - 1
bytes32 constant REGISTERED_CORE_RELAYERS_STORAGE_SLOT =
0x9e4e57806ba004485cfae8ca22fb13380f01c10b1b0ccf48c20464961643cf6d;

Expand Down

0 comments on commit 4d51f8e

Please sign in to comment.