Implements eth_getProof (#122)

* Implemented eth_getProof and cleaned logs query types

* Rename ethereum logs query type
This commit is contained in:
Austin Abell
2019-10-16 09:46:50 +09:00
committed by GitHub
parent 5a19ae5706
commit dc25d847c3
5 changed files with 108 additions and 9 deletions
+10
View File
@@ -17,3 +17,13 @@ func UnmarshalBigInt(s string) (*big.Int, error) {
err := ret.UnmarshalText([]byte(s))
return ret, err
}
// MustUnmarshalBigInt unmarshalls string from *big.Int
func MustUnmarshalBigInt(s string) *big.Int {
ret := new(big.Int)
err := ret.UnmarshalText([]byte(s))
if err != nil {
panic(err)
}
return ret
}