update uncles return (#337)

This commit is contained in:
noot authored and GitHub committed 2020-06-18 16:35:06 -04:00
1 parent 9f573690a6
commit 0921c863e7
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -545,7 +545,7 @@ func formatBlock(
"gasUsed": (*hexutil.Big)(gasUsed),
"timestamp": hexutil.Uint64(header.Time.Unix()),
"transactions": transactions.([]common.Hash),
"uncles": nil,
"uncles": []string{},
}
}
+1
View File
@@ -763,4 +763,5 @@ func TestEth_GetBlockByNumber(t *testing.T) {
err := json.Unmarshal(rpcRes.Result, &block)
require.NoError(t, err)
require.Equal(t, "0x0", block["extraData"].(string))
require.Equal(t, []interface{}{}, block["uncles"].([]interface{}))
}