@@ -180,7 +180,7 @@ func TestBlockHash(t *testing.T) {
180
180
block , err := gw .BlockByNumber (context .Background (), tc .number )
181
181
require .NoError (t , err )
182
182
183
- commitments , err := core .VerifyBlockHash (block , & tc .chain , nil , false )
183
+ commitments , err := core .VerifyBlockHash (block , & tc .chain , nil )
184
184
assert .NoError (t , err )
185
185
assert .NotNil (t , commitments )
186
186
})
@@ -198,7 +198,7 @@ func TestBlockHash(t *testing.T) {
198
198
mainnetBlock1 .Hash = h1
199
199
200
200
expectedErr := "can not verify hash in block header"
201
- commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil , false )
201
+ commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil )
202
202
assert .EqualError (t , err , expectedErr )
203
203
assert .Nil (t , commitments )
204
204
})
@@ -209,7 +209,7 @@ func TestBlockHash(t *testing.T) {
209
209
block119802 , err := goerliGW .BlockByNumber (context .Background (), 119802 )
210
210
require .NoError (t , err )
211
211
212
- commitments , err := core .VerifyBlockHash (block119802 , & utils .Goerli , nil , false )
212
+ commitments , err := core .VerifyBlockHash (block119802 , & utils .Goerli , nil )
213
213
assert .NoError (t , err )
214
214
assert .NotNil (t , commitments )
215
215
})
@@ -223,7 +223,7 @@ func TestBlockHash(t *testing.T) {
223
223
expectedErr := fmt .Sprintf ("len of transactions: %v do not match len of receipts: %v" ,
224
224
len (mainnetBlock1 .Transactions ), len (mainnetBlock1 .Receipts ))
225
225
226
- commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil , false )
226
+ commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil )
227
227
assert .EqualError (t , err , expectedErr )
228
228
assert .Nil (t , commitments )
229
229
})
@@ -237,7 +237,7 @@ func TestBlockHash(t *testing.T) {
237
237
"transaction hash (%v) at index: %v does not match receipt's hash (%v)" ,
238
238
mainnetBlock1 .Transactions [1 ].Hash ().String (), 1 ,
239
239
mainnetBlock1 .Receipts [1 ].TransactionHash )
240
- commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil , false )
240
+ commitments , err := core .VerifyBlockHash (mainnetBlock1 , & utils .Mainnet , nil )
241
241
assert .EqualError (t , err , expectedErr )
242
242
assert .Nil (t , commitments )
243
243
})
@@ -261,7 +261,7 @@ func Test0132BlockHash(t *testing.T) {
261
261
su , err := gw .StateUpdate (context .Background (), test .blockNum )
262
262
require .NoError (t , err )
263
263
264
- c , err := core .VerifyBlockHash (b , & utils .SepoliaIntegration , su .StateDiff , false )
264
+ c , err := core .VerifyBlockHash (b , & utils .SepoliaIntegration , su .StateDiff )
265
265
require .NoError (t , err )
266
266
assert .NotNil (t , c )
267
267
})
0 commit comments