@@ -1041,23 +1041,23 @@ func TestStorageAt(t *testing.T) {
10411041	t .Run ("empty blockchain" , func (t  * testing.T ) {
10421042		mockReader .EXPECT ().HeadState ().Return (nil , nil , errors .New ("empty blockchain" ))
10431043
1044- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Latest :  true } , & felt .Zero , & felt . Zero )
1044+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Latest :  true } )
10451045		require .Nil (t , storage )
10461046		assert .Equal (t , rpc .ErrBlockNotFound , rpcErr )
10471047	})
10481048
10491049	t .Run ("non-existent block hash" , func (t  * testing.T ) {
10501050		mockReader .EXPECT ().StateAtBlockHash (& felt .Zero ).Return (nil , nil , errors .New ("non-existent block hash" ))
10511051
1052- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Hash :  & felt .Zero } , & felt .Zero , & felt .Zero )
1052+ 		storage , rpcErr  :=  handler .StorageAt (& felt .Zero , & felt .Zero , & rpc. BlockID { Hash :  & felt .Zero } )
10531053		require .Nil (t , storage )
10541054		assert .Equal (t , rpc .ErrBlockNotFound , rpcErr )
10551055	})
10561056
10571057	t .Run ("non-existent block number" , func (t  * testing.T ) {
10581058		mockReader .EXPECT ().StateAtBlockNumber (uint64 (0 )).Return (nil , nil , errors .New ("non-existent block number" ))
10591059
1060- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Number :  0 } , & felt .Zero , & felt . Zero )
1060+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Number :  0 } )
10611061		require .Nil (t , storage )
10621062		assert .Equal (t , rpc .ErrBlockNotFound , rpcErr )
10631063	})
@@ -1069,7 +1069,7 @@ func TestStorageAt(t *testing.T) {
10691069		mockReader .EXPECT ().HeadState ().Return (mockState , NoopCloser , nil )
10701070		mockState .EXPECT ().ContractStorage (gomock .Any (), gomock .Any ()).Return (nil , errors .New ("non-existent contract" ))
10711071
1072- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Latest :  true } , & felt .Zero , & felt . Zero )
1072+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Latest :  true } )
10731073		require .Nil (t , storage )
10741074		assert .Equal (t , rpc .ErrContractNotFound , rpcErr )
10751075	})
@@ -1078,7 +1078,7 @@ func TestStorageAt(t *testing.T) {
10781078		mockReader .EXPECT ().HeadState ().Return (mockState , NoopCloser , nil )
10791079		mockState .EXPECT ().ContractStorage (gomock .Any (), gomock .Any ()).Return (& felt .Zero , errors .New ("non-existent key" ))
10801080
1081- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Latest :  true } , & felt .Zero , & felt . Zero )
1081+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Latest :  true } )
10821082		require .Nil (t , storage )
10831083		assert .Equal (t , rpc .ErrContractNotFound , rpcErr )
10841084	})
@@ -1089,7 +1089,7 @@ func TestStorageAt(t *testing.T) {
10891089		mockReader .EXPECT ().HeadState ().Return (mockState , NoopCloser , nil )
10901090		mockState .EXPECT ().ContractStorage (gomock .Any (), gomock .Any ()).Return (expectedStorage , nil )
10911091
1092- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Latest :  true } , & felt .Zero , & felt . Zero )
1092+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Latest :  true } )
10931093		require .Nil (t , rpcErr )
10941094		assert .Equal (t , expectedStorage , storage )
10951095	})
@@ -1098,7 +1098,7 @@ func TestStorageAt(t *testing.T) {
10981098		mockReader .EXPECT ().StateAtBlockHash (& felt .Zero ).Return (mockState , NoopCloser , nil )
10991099		mockState .EXPECT ().ContractStorage (gomock .Any (), gomock .Any ()).Return (expectedStorage , nil )
11001100
1101- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Hash :  & felt .Zero } , & felt .Zero , & felt .Zero )
1101+ 		storage , rpcErr  :=  handler .StorageAt (& felt .Zero , & felt .Zero , & rpc. BlockID { Hash :  & felt .Zero } )
11021102		require .Nil (t , rpcErr )
11031103		assert .Equal (t , expectedStorage , storage )
11041104	})
@@ -1107,7 +1107,7 @@ func TestStorageAt(t *testing.T) {
11071107		mockReader .EXPECT ().StateAtBlockNumber (uint64 (0 )).Return (mockState , NoopCloser , nil )
11081108		mockState .EXPECT ().ContractStorage (gomock .Any (), gomock .Any ()).Return (expectedStorage , nil )
11091109
1110- 		storage , rpcErr  :=  handler .StorageAt (& rpc. BlockID { Number :  0 } , & felt .Zero , & felt . Zero )
1110+ 		storage , rpcErr  :=  handler .StorageAt (& felt . Zero , & felt .Zero , & rpc. BlockID { Number :  0 } )
11111111		require .Nil (t , rpcErr )
11121112		assert .Equal (t , expectedStorage , storage )
11131113	})
0 commit comments