Browse Source

ethclient: remove use of common.ToHex (#20326)

Felix Lange 6 years ago
parent
commit
c013192ba7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ethclient/ethclient.go

+ 1 - 1
ethclient/ethclient.go

@@ -514,7 +514,7 @@ func (ec *Client) SendTransaction(ctx context.Context, tx *types.Transaction) er
 	if err != nil {
 		return err
 	}
-	return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", common.ToHex(data))
+	return ec.c.CallContext(ctx, nil, "eth_sendRawTransaction", hexutil.Encode(data))
 }
 
 func toCallArg(msg ethereum.CallMsg) interface{} {