aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-12-20 21:31:10 +0800
committerFelix Lange <fjl@twurst.com>2016-12-20 21:46:22 +0800
commit12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4 (patch)
tree73d6780057bb56dc8061d020510140203c93dc7a /eth
parentcf71f5cd604f4d5c94d9e9b12b121a614d662dc7 (diff)
downloaddexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar.gz
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar.bz2
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar.lz
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar.xz
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.tar.zst
dexon-12c964b2b7c70949ae5a8c54cf73be7bbd8c97b4.zip
internal/ethapi: fix hex handling for eth_call input and eth_sendRawTransaction
Diffstat (limited to 'eth')
-rw-r--r--eth/bind.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/bind.go b/eth/bind.go
index 6f7aee4f7..a9864b367 100644
--- a/eth/bind.go
+++ b/eth/bind.go
@@ -84,7 +84,7 @@ func toCallArgs(msg ethereum.CallMsg) ethapi.CallArgs {
args := ethapi.CallArgs{
To: msg.To,
From: msg.From,
- Data: common.ToHex(msg.Data),
+ Data: msg.Data,
}
if msg.Gas != nil {
args.Gas = hexutil.Big(*msg.Gas)
@@ -135,6 +135,6 @@ func (b *ContractBackend) EstimateGas(ctx context.Context, msg ethereum.CallMsg)
// into the pending pool for execution.
func (b *ContractBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error {
raw, _ := rlp.EncodeToBytes(tx)
- _, err := b.txapi.SendRawTransaction(ctx, common.ToHex(raw))
+ _, err := b.txapi.SendRawTransaction(ctx, raw)
return err
}