@@ -1127,11 +1127,11 @@ func TestDebugGetRawTransaction(t *testing.T) {
11271127 }... )
11281128}
11291129
1130- func (sut * SUT ) testGetByHash (ctx context.Context , t * testing.T , want * types.Block ) {
1130+ func (s * SUT ) testGetByHash (ctx context.Context , t * testing.T , want * types.Block ) {
11311131 t .Helper ()
11321132
1133- testRPCGetter (ctx , t , "eth_getBlockByHash" , sut .BlockByHash , want .Hash (), want )
1134- sut .testRPC (ctx , t , []rpcTest {
1133+ testRPCGetter (ctx , t , "eth_getBlockByHash" , s .BlockByHash , want .Hash (), want )
1134+ s .testRPC (ctx , t , []rpcTest {
11351135 {
11361136 method : "eth_getBlockByHash" ,
11371137 args : []any {want .Hash (), false },
@@ -1159,7 +1159,7 @@ func (sut *SUT) testGetByHash(ctx context.Context, t *testing.T, want *types.Blo
11591159 marshaled , err := wantTx .MarshalBinary ()
11601160 require .NoErrorf (t , err , "%T.MarshalBinary()" , wantTx )
11611161
1162- sut .testRPC (ctx , t , []rpcTest {
1162+ s .testRPC (ctx , t , []rpcTest {
11631163 {
11641164 method : "eth_getTransactionByHash" ,
11651165 args : []any {wantTx .Hash ()},
@@ -1184,7 +1184,7 @@ func (sut *SUT) testGetByHash(ctx context.Context, t *testing.T, want *types.Blo
11841184 }
11851185
11861186 outOfBoundsIndex := hexutil .Uint (len (want .Transactions ()) + 1 ) //nolint:gosec // Known to not overflow
1187- sut .testRPC (ctx , t , []rpcTest {
1187+ s .testRPC (ctx , t , []rpcTest {
11881188 {
11891189 method : "eth_getTransactionByBlockHashAndIndex" ,
11901190 args : []any {want .Hash (), outOfBoundsIndex },
@@ -1198,10 +1198,10 @@ func (sut *SUT) testGetByHash(ctx context.Context, t *testing.T, want *types.Blo
11981198 }... )
11991199}
12001200
1201- func (sut * SUT ) testGetByUnknownHash (ctx context.Context , t * testing.T ) {
1201+ func (s * SUT ) testGetByUnknownHash (ctx context.Context , t * testing.T ) {
12021202 t .Helper ()
12031203
1204- sut .testRPC (ctx , t , []rpcTest {
1204+ s .testRPC (ctx , t , []rpcTest {
12051205 {
12061206 method : "eth_getBlockByHash" ,
12071207 args : []any {common.Hash {}, true },
@@ -1243,11 +1243,11 @@ func (sut *SUT) testGetByUnknownHash(ctx context.Context, t *testing.T) {
12431243// testGetByNumber accepts a block-number override to allow testing via named
12441244// blocks, e.g. [rpc.LatestBlockNumber], not only via the specific number
12451245// carried by the [types.Block].
1246- func (sut * SUT ) testGetByNumber (ctx context.Context , t * testing.T , want * types.Block , n rpc.BlockNumber ) {
1246+ func (s * SUT ) testGetByNumber (ctx context.Context , t * testing.T , want * types.Block , n rpc.BlockNumber ) {
12471247 t .Helper ()
1248- testRPCGetter (ctx , t , "eth_getBlockByNumber" , sut .BlockByNumber , big .NewInt (n .Int64 ()), want )
1248+ testRPCGetter (ctx , t , "eth_getBlockByNumber" , s .BlockByNumber , big .NewInt (n .Int64 ()), want )
12491249
1250- sut .testRPC (ctx , t , []rpcTest {
1250+ s .testRPC (ctx , t , []rpcTest {
12511251 {
12521252 method : "eth_getBlockByNumber" ,
12531253 args : []any {n , false },
@@ -1275,7 +1275,7 @@ func (sut *SUT) testGetByNumber(ctx context.Context, t *testing.T, want *types.B
12751275 marshaled , err := wantTx .MarshalBinary ()
12761276 require .NoErrorf (t , err , "%T.MarshalBinary()" , wantTx )
12771277
1278- sut .testRPC (ctx , t , []rpcTest {
1278+ s .testRPC (ctx , t , []rpcTest {
12791279 {
12801280 method : "eth_getTransactionByBlockNumberAndIndex" ,
12811281 args : []any {n , txIdx },
@@ -1290,7 +1290,7 @@ func (sut *SUT) testGetByNumber(ctx context.Context, t *testing.T, want *types.B
12901290 }
12911291
12921292 outOfBoundsIndex := hexutil .Uint (len (want .Transactions ()) + 1 ) //nolint:gosec // Known to not overflow
1293- sut .testRPC (ctx , t , []rpcTest {
1293+ s .testRPC (ctx , t , []rpcTest {
12941294 {
12951295 method : "eth_getTransactionByBlockNumberAndIndex" ,
12961296 args : []any {n , outOfBoundsIndex },
@@ -1304,11 +1304,11 @@ func (sut *SUT) testGetByNumber(ctx context.Context, t *testing.T, want *types.B
13041304 }... )
13051305}
13061306
1307- func (sut * SUT ) testGetByUnknownNumber (ctx context.Context , t * testing.T ) {
1307+ func (s * SUT ) testGetByUnknownNumber (ctx context.Context , t * testing.T ) {
13081308 t .Helper ()
13091309
13101310 const n rpc.BlockNumber = math .MaxInt64
1311- sut .testRPC (ctx , t , []rpcTest {
1311+ s .testRPC (ctx , t , []rpcTest {
13121312 {
13131313 method : "eth_getBlockByNumber" ,
13141314 args : []any {n , true },
0 commit comments