Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
ref impl: fix data minimum length, bug found by @trianglesphere
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Jan 13, 2022
1 parent 3aeb701 commit 225955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opnode/l2/input_derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func UnmarshalLogEvent(blockNum uint64, txIndex uint64, ev *types.Log) (*types.D
if ev.Topics[0] != DepositEventABIHash {
return nil, fmt.Errorf("invalid deposit event selector: %s, expected %s", ev.Topics[0], DepositEventABIHash)
}
if len(ev.Data) < 7*32 {
if len(ev.Data) < 6*32 {
return nil, fmt.Errorf("deposit event data too small (%d bytes): %x", len(ev.Data), ev.Data)
}

Expand Down

0 comments on commit 225955b

Please sign in to comment.