File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import (
1717 "github.com/ethereum/go-ethereum/log"
1818 "github.com/ethereum/go-ethereum/params"
1919 "github.com/ethereum/go-ethereum/rlp"
20+ "github.com/offchainlabs/nitro/util/arbmath"
2021
2122 "github.com/offchainlabs/nitro/arbcompress"
2223 "github.com/offchainlabs/nitro/arbos/arbosState"
@@ -260,7 +261,8 @@ func (r *inboxMultiplexer) Pop(ctx context.Context) (*arbostypes.MessageWithMeta
260261 if r .arbOSVersionGetter == nil {
261262 return nil , errors .New ("arbOSVersionGetter is nil" )
262263 }
263- arbosVersion , err := r .arbOSVersionGetter .ArbOSVersionForMessageIndex (arbutil .MessageIndex (r .cachedSequencerMessageNum )).Await (ctx )
264+ lastMessageNum := arbmath .SaturatingUSub (r .cachedSequencerMessageNum , 1 )
265+ arbosVersion , err := r .arbOSVersionGetter .ArbOSVersionForMessageIndex (arbutil .MessageIndex (lastMessageNum )).Await (ctx )
264266 if err != nil {
265267 return nil , err
266268 }
You can’t perform that action at this time.
0 commit comments