@@ -41,6 +41,7 @@ import (
4141 "github.com/offchainlabs/nitro/pubsub"
4242 "github.com/offchainlabs/nitro/solgen/go/express_lane_auctiongen"
4343 "github.com/offchainlabs/nitro/solgen/go/localgen"
44+ pgen "github.com/offchainlabs/nitro/solgen/go/precompilesgen"
4445 "github.com/offchainlabs/nitro/timeboost"
4546 "github.com/offchainlabs/nitro/timeboost/bindings"
4647 "github.com/offchainlabs/nitro/util/arbmath"
@@ -63,6 +64,16 @@ func TestTimeboostTxsTimeoutByBlock(t *testing.T) {
6364 seqClient , seqInfo := builderSeq .L2 .Client , builderSeq .L2Info
6465 defer cleanupSeq ()
6566 seqInfo .GenerateAccount ("User2" )
67+ builderSeq .L2 .TransferBalance (t , "Owner" , "User2" , big .NewInt (1e18 ), seqInfo )
68+
69+ user2Opts := seqInfo .GetDefaultTransactOpts ("User2" , ctx )
70+ becomeChainOwner (t , ctx , user2Opts , seqClient )
71+ arbOwner , err := pgen .NewArbOwner (types .ArbOwnerAddress , seqClient )
72+ Require (t , err )
73+ tx , err := arbOwner .SetMaxTxGasLimit (& user2Opts , 700000000 )
74+ Require (t , err )
75+ _ , err = EnsureTxSucceeded (ctx , seqClient , tx )
76+ Require (t , err )
6677
6778 auctionContract , err := express_lane_auctiongen .NewExpressLaneAuction (auctionContractAddr , seqClient )
6879 Require (t , err )
@@ -97,7 +108,8 @@ func TestTimeboostTxsTimeoutByBlock(t *testing.T) {
97108
98109 var txs types.Transactions
99110 for i := uint64 (0 ); i < numTxs ; i ++ {
100- txs = append (txs , seqInfo .PrepareTx ("Owner" , "User2" , 700000000 , big .NewInt (1e8 ), data )) // this tx should consume one block
111+ user2 := seqInfo .GetAddress ("User2" )
112+ txs = append (txs , seqInfo .PrepareTxToCustomGas ("Owner" , & user2 , 700000000 , big .NewInt (1e8 ), data )) // this tx should consume one block
101113 }
102114 // Buffer future sequence numbered txs
103115 for seq := uint64 (1 ); seq < numTxs ; seq ++ {
0 commit comments