eth_getStorageAt output hex should begin with 0x
This commit is contained in:
parent
3b20603eb1
commit
29930da522
@ -99,7 +99,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
|||||||
state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address)
|
state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address)
|
||||||
value := state.StorageString(args.Key)
|
value := state.StorageString(args.Key)
|
||||||
|
|
||||||
*reply = common.Bytes2Hex(value.Bytes())
|
*reply = common.ToHex(value.Bytes())
|
||||||
case "eth_getTransactionCount":
|
case "eth_getTransactionCount":
|
||||||
args := new(GetTxCountArgs)
|
args := new(GetTxCountArgs)
|
||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user