internal/ethapi: fix hex handling for eth_call input and eth_sendRawTransaction

This commit is contained in:
Felix Lange
2016-12-20 14:31:10 +01:00
parent cf71f5cd60
commit 12c964b2b7
2 changed files with 6 additions and 6 deletions

View File

@ -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
}