diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-21 19:11:36 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-21 19:11:36 +0800 |
commit | bf7dcfce368692e1dc605c691504646eef14a645 (patch) | |
tree | 0a33c44b7bd589c278f9eda3dabd3e719ad43be2 /xeth | |
parent | 9bde7fd72e738865e6ed3208495f966f4f21daac (diff) | |
parent | 907848997bbf79382a98b0c82e4aa61ca2eecd16 (diff) | |
download | dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar.gz dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar.bz2 dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar.lz dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar.xz dexon-bf7dcfce368692e1dc605c691504646eef14a645.tar.zst dexon-bf7dcfce368692e1dc605c691504646eef14a645.zip |
Merge pull request #1059 from obscuren/cleanup
Cleanup
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 3ec3f7dd4..b90e0aa47 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -881,7 +881,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS var ( from = common.HexToAddress(fromStr) to = common.HexToAddress(toStr) - value = common.NewValue(valueStr) + value = common.Big(valueStr) gas = common.Big(gasStr) price = common.Big(gasPriceStr) data []byte @@ -928,9 +928,9 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS var tx *types.Transaction if contractCreation { - tx = types.NewContractCreationTx(value.BigInt(), gas, price, data) + tx = types.NewContractCreationTx(value, gas, price, data) } else { - tx = types.NewTransactionMessage(to, value.BigInt(), gas, price, data) + tx = types.NewTransactionMessage(to, value, gas, price, data) } state := self.backend.ChainManager().TxState() |