forked from cerc-io/laconicd-deprecated
Implements eth_getProof (#122)
* Implemented eth_getProof and cleaned logs query types * Rename ethereum logs query type
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user