Skip to content

Commit

Permalink
state reader fix for DS (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott authored Sep 16, 2024
1 parent 8f3886c commit f5bba0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zk/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func GetBatchLocalExitRootFromSCStorageForLatestBlock(batchNo uint64, db DbReade

func GetBatchLocalExitRootFromSCStorageByBlock(blockNumber uint64, db DbReader, tx kv.Tx) (libcommon.Hash, error) {
if blockNumber > 0 {
stateReader := state.NewPlainState(tx, blockNumber, systemcontracts.SystemContractCodeLookup["hermez"])
stateReader := state.NewPlainState(tx, blockNumber+1, systemcontracts.SystemContractCodeLookup["hermez"])
defer stateReader.Close()
rawLer, err := stateReader.ReadAccountStorage(state.GER_MANAGER_ADDRESS, 1, &state.GLOBAL_EXIT_ROOT_POS_1)
if err != nil {
Expand Down

0 comments on commit f5bba0f

Please sign in to comment.