@@ -1145,11 +1145,11 @@ func TestNodeFacade_GetProofCurrentRootHash(t *testing.T) {
11451145 t .Run ("should work with header v3" , func (t * testing.T ) {
11461146 t .Parallel ()
11471147
1148- rootHash := []byte ("rootHash1" )
1148+ rootHash1 := []byte ("rootHash1" )
11491149 expectedResponse := & common.GetProofResponse {
11501150 Proof : [][]byte {[]byte ("valid" ), []byte ("proof" )},
11511151 Value : []byte ("value" ),
1152- RootHash : string (rootHash ),
1152+ RootHash : string (rootHash1 ),
11531153 }
11541154
11551155 arg := createMockArguments ()
@@ -1158,12 +1158,12 @@ func TestNodeFacade_GetProofCurrentRootHash(t *testing.T) {
11581158 return & block.HeaderV3 {}
11591159 },
11601160 GetLastExecutedBlockInfoCalled : func () (uint64 , []byte , []byte ) {
1161- return 0 , []byte ("" ), rootHash
1161+ return 0 , []byte ("" ), rootHash1
11621162 },
11631163 }
11641164 arg .Node = & mock.NodeStub {
11651165 GetProofCalled : func (rootHash string , _ string ) (* common.GetProofResponse , error ) {
1166- require .Equal (t , rootHash , rootHash )
1166+ require .Equal (t , hex . EncodeToString ( rootHash1 ) , rootHash )
11671167 return expectedResponse , nil
11681168 },
11691169 }
0 commit comments