Skip to content

Commit be543b8

Browse files
committed
chore: update
1 parent 89fa369 commit be543b8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

testutil/testutil_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
package testutil_test
22

33
import (
4+
"context"
45
"math/big"
56
"testing"
67

78
"github.com/0xsequence/ethkit/ethcoder"
9+
"github.com/0xsequence/ethkit/ethrpc"
810
"github.com/0xsequence/ethkit/go-ethereum/core/types"
911
"github.com/0xsequence/go-sequence/testutil"
1012
"github.com/stretchr/testify/assert"
@@ -34,9 +36,17 @@ func TestTestutil(t *testing.T) {
3436
sequenceContext, err := testChain.V1DeploySequenceContext()
3537
assert.NoError(t, err)
3638

39+
// Mine a new block before deploying V2
40+
_, err = testChain.Provider.Do(context.Background(), ethrpc.NewCall("evm_mine", nil))
41+
assert.NoError(t, err)
42+
3743
sequenceContextV2, err := testChain.V2DeploySequenceContext()
3844
assert.NoError(t, err)
3945

46+
// Mine a new block before deploying V3
47+
_, err = testChain.Provider.Do(context.Background(), ethrpc.NewCall("evm_mine", nil))
48+
assert.NoError(t, err)
49+
4050
sequenceContextV3, err := testChain.V3DeploySequenceContext()
4151
assert.NoError(t, err)
4252

0 commit comments

Comments
 (0)