Skip to content

Commit

Permalink
Update OVM_L1CrossDomainMessenger (#76)
Browse files Browse the repository at this point in the history
* Update OVM_L1CrossDomainMessenger

Fixes problem in the value we were verifying.

* Fix broken tests

Co-authored-by: Karl Floersch <karl@karlfloersch.com>
  • Loading branch information
smartcontracts and karlfloersch authored Nov 23, 2020
1 parent 0125c1e commit a4fae7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ contract OVM_L1CrossDomainMessenger is iOVM_L1CrossDomainMessenger, OVM_BaseCros

return Lib_SecureMerkleTrie.verifyInclusionProof(
abi.encodePacked(storageKey),
abi.encodePacked(uint256(1)),
abi.encodePacked(uint8(1)),
_proof.storageTrieWitness,
account.storageRoot
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe('OVM_L1CrossDomainMessenger', () => {
nodes: [
{
key: storageKey,
val: '0x' + '01'.padStart(64, '0'),
val: '0x' + '01'.padStart(2, '0'),
},
],
secure: true,
Expand Down

0 comments on commit a4fae7c

Please sign in to comment.