Skip to content

Commit 3f7b785

Browse files
authored
Update batchresources.go (0xPolygon#1880)
1 parent dfb28a1 commit 3f7b785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sequencer/batchresources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ func (r *batchResources) sub(other batchResources) error {
2020
r.bytes -= other.bytes
2121
err := r.zKCounters.Sub(other.zKCounters)
2222
if err != nil {
23+
r.bytes = bytesBackup
2324
return NewBatchRemainingResourcesUnderflowError(err, err.Error())
2425
}
25-
r.bytes = bytesBackup
2626

2727
return err
2828
}

0 commit comments

Comments
 (0)