mirror of https://github.com/status-im/op-geth.git
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)
|
||||
value := state.StorageString(args.Key)
|
||||
|
||||
*reply = common.Bytes2Hex(value.Bytes())
|
||||
*reply = common.ToHex(value.Bytes())
|
||||
case "eth_getTransactionCount":
|
||||
args := new(GetTxCountArgs)
|
||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||
|
|
Loading…
Reference in New Issue