Skip to content

Commit 0669dd4

Browse files
committed
fix: linting
1 parent 78b3fd4 commit 0669dd4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/rpc/rpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"encoding/json"
77
"fmt"
88
"math/big"
9-
"math/rand"
9+
"math/rand/v2"
1010
"net/http"
1111
"os"
1212
"strconv"

framework/rpc/rpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func TestRPCAPI(t *testing.T) {
272272

273273
// Assert the delta is at least the requested advance
274274
// (Anvil should add exactly `advance`, but we allow >= to be safe.)
275-
require.GreaterOrEqual(t, int64(t2-t1), int64(advance), "timestamp did not advance by expected seconds")
275+
require.GreaterOrEqual(t, t2-t1, advance, "timestamp did not advance by expected seconds")
276276

277277
t.Logf("advanced time by %d seconds: %d -> %d (Δ=%d)", advance, t1, t2, t2-t1)
278278
})

0 commit comments

Comments
 (0)