Skip to content

Commit 85d3327

Browse files
author
colinlyguo
committed
fix
1 parent 6ee5fa1 commit 85d3327

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

coordinator/test/api_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,10 @@ func setupCoordinator(t *testing.T, proversPerSession uint8, coordinatorURL stri
101101
},
102102
}
103103

104-
chainConf := &params.ChainConfig{
105-
LondonBlock: big.NewInt(0),
106-
BernoulliBlock: big.NewInt(0),
107-
CurieBlock: big.NewInt(0),
108-
DarwinTime: new(uint64),
109-
DarwinV2Time: new(uint64),
110-
EuclidTime: new(uint64),
111-
EuclidV2Time: new(uint64),
112-
}
113-
114104
proofCollector := cron.NewCollector(context.Background(), db, conf, nil)
115105

116106
router := gin.New()
117-
api.InitController(conf, chainConf, db, nil)
107+
api.InitController(conf, &params.ChainConfig{EuclidV2Time: new(uint64)}, db, nil)
118108
route.Route(router, conf, nil)
119109
srv := &http.Server{
120110
Addr: coordinatorURL,

rollup/tests/rollup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func testCommitBatchAndFinalizeBundleCodecV4V5V6(t *testing.T) {
169169
})
170170
defer patchGuard2.Reset()
171171

172-
proof := &message.OpenVMBundleProof{EvmProof: &message.OpenVMEvmProof{}}
172+
bundleProof := &message.OpenVMBundleProof{EvmProof: &message.OpenVMEvmProof{Instances: make([]byte, 384)}}
173173
bundles, err := bundleOrm.GetBundles(context.Background(), map[string]interface{}{}, nil, 0)
174174
assert.NoError(t, err)
175175
for _, bundle := range bundles {

0 commit comments

Comments
 (0)