Skip to content

Commit

Permalink
chore: reuse the code for AddNewRollupTypeTopic
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Oct 14, 2024
1 parent 78bbcb3 commit 87c52cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions zk/stages/stage_l1_sequencer_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ Loop:
return funcErr
}
case contracts.AddNewRollupTypeTopic:
rollupType := l.Topics[1].Big().Uint64()
forkIdBytes := l.Data[64:96] // 3rd positioned item in the log data
forkId := new(big.Int).SetBytes(forkIdBytes).Uint64()
if funcErr = hermezDb.WriteRollupType(rollupType, forkId); funcErr != nil {
return funcErr
}
case contracts.AddNewRollupTypeTopicBanana:
rollupType := l.Topics[1].Big().Uint64()
forkIdBytes := l.Data[64:96] // 3rd positioned item in the log data
Expand Down

0 comments on commit 87c52cb

Please sign in to comment.