Skip to content

Commit c3b3996

Browse files
committed
Check for proof size % 60*32
1 parent 953afcc commit c3b3996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rvgo/slow/vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func Step(calldata []byte, po PreimageOracle) (stateHash common.Hash, outErr err
129129

130130
proofContentOffset := shortToU64(uint16(stateContentOffset) + paddedStateSize + 32)
131131

132-
if mod(b32asBEWord(calldataload(shortToU64(uint16(stateContentOffset)+paddedStateSize))), toU256(60)) != toU256(0) {
132+
if mod(b32asBEWord(calldataload(shortToU64(uint16(stateContentOffset)+paddedStateSize))), shortToU256(60*32)) != toU256(0) {
133133
// proof offset must be stateContentOffset+paddedStateSize+32
134134
// proof size: 64-5+1=60 * 32 byte leaf,
135135
// but multiple memProof can be used, so the proofSize must be a multiple of 60

0 commit comments

Comments
 (0)