fix golint

This commit is contained in:
colinlyguo
2024-03-14 17:51:55 +08:00
parent fcd3ad75a9
commit bfb792cdba

View File

@@ -213,12 +213,14 @@ func testFallbackGasLimit(t *testing.T) {
assert.Greater(t, tx0.Gas(), uint64(0))
assert.Eventually(t, func() bool {
_, isPending, err := s.client.TransactionByHash(s.ctx, txHash0)
var isPending bool
_, isPending, err = s.client.TransactionByHash(s.ctx, txHash0)
return err == nil && !isPending
}, time.Minute, time.Second)
assert.Eventually(t, func() bool {
receipt, err := s.client.TransactionReceipt(s.ctx, txHash0)
var receipt *gethTypes.Receipt
receipt, err = s.client.TransactionReceipt(s.ctx, txHash0)
return err == nil && receipt != nil
}, time.Minute, time.Second)