ethereum/relayer: fix storage constant comments

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.
This commit is contained in:
Csongor Kiss 2023-09-15 12:05:13 +01:00 committed by Evan Gray
parent bb8873ffea
commit 4d51f8e57e
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ struct DefaultDeliveryProviderState {
address defaultDeliveryProvider;
}
//keccak256("DefaultDeliveryProviderState") - 1
//keccak256("DefaultRelayProviderState") - 1
bytes32 constant DEFAULT_RELAY_PROVIDER_STORAGE_SLOT =
0xebc28a1927f62765bfb7ada566eeab2d31a98c65dbd1e8cad64acae2a3ae45d4;
@ -49,7 +49,7 @@ struct RegisteredWormholeRelayersState {
mapping(uint16 => bytes32) registeredWormholeRelayers;
}
//keccak256("RegisteredWormholeRelayersState") - 1
//keccak256("RegisteredCoreRelayersState") - 1
bytes32 constant REGISTERED_CORE_RELAYERS_STORAGE_SLOT =
0x9e4e57806ba004485cfae8ca22fb13380f01c10b1b0ccf48c20464961643cf6d;