Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

the method " web3.eth.getBlockByNumber()" reseult fail? #54

Closed
wufeiafei opened this issue Apr 13, 2018 · 1 comment
Closed

the method " web3.eth.getBlockByNumber()" reseult fail? #54

wufeiafei opened this issue Apr 13, 2018 · 1 comment

Comments

@wufeiafei
Copy link

wufeiafei commented Apr 13, 2018

Hi,
I use the method " web3.eth.getBlockByNumber()" ,but the result is failture.
this is my code :
let web3 = Web3.new(URL.init(string: "http://127.0.0.1:8545")!)!
let response = web3.eth.getBlockByNumber(UInt64(2614), fullTransactions: false)

and the reponse result is :
.failure(nodeError("invalid argument 0: json: cannot unmarshal hex string of odd length into Go value of type common.Hash"))

===
what can I do?

@shamatar
Copy link
Contributor

fixed in #55

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants