Skip to content

Commit

Permalink
fix: botDelegatedWithdrawToEvent transaction should have at least 6 logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Dec 6, 2023
1 parent 0132c83 commit 12808a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (b *Processor) toWithdrawal(botDelegatedWithdrawToEvent *L2ContractEvent, r
// event[i-2]: SentMessage
// event[i-1]: SentMessageExtension1
// event[i] : L2StandardBridgeBot.WithdrawTo
if botDelegatedWithdrawToEvent.LogIndex < 5 || len(receipt.Logs) < 5 {
if botDelegatedWithdrawToEvent.LogIndex < 5 || len(receipt.Logs) < 6 {
return nil, fmt.Errorf("invalid botDelegatedWithdrawToEvent: %v", botDelegatedWithdrawToEvent)
}

Expand Down

0 comments on commit 12808a0

Please sign in to comment.