Skip to content

Commit

Permalink
chore: fix typos (#1244)
Browse files Browse the repository at this point in the history
Co-authored-by: HAOYUatHZ <[email protected]>
  • Loading branch information
xiaoxianBoy and 0xmountaintop authored Apr 11, 2024
1 parent e108fc1 commit 254f182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/verifier/PatriciaMerkleTrieVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ library PatriciaMerkleTrieVerifier {
}

// decodes all RLP encoded data and stores their DATA items
// [length - 128 bits | calldata offset - 128 bits] in a continous memory region.
// [length - 128 bits | calldata offset - 128 bits] in a continuous memory region.
// Expects that the RLP starts with a list that defines the length
// of the whole RLP region.
function decodeFlat(_ptr) -> ptr, memStart, nItems, hash {
Expand Down Expand Up @@ -505,7 +505,7 @@ library PatriciaMerkleTrieVerifier {
}

// the one and only boundary check
// in case an attacker crafted a malicous payload
// in case an attacker crafted a malicious payload
// and succeeds in the prior verification steps
// then this should catch any bogus accesses
if iszero(eq(ptr, add(proof.offset, proof.length))) {
Expand Down

0 comments on commit 254f182

Please sign in to comment.