aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-21 17:36:05 +0800
committerobscuren <geffobscura@gmail.com>2015-05-21 17:36:05 +0800
commitff1630834cddb768826cec0e555a645e13c7bc9c (patch)
tree9c27290c7de51bb8f2771dfda642ce0ba1edfbde /xeth
parent9bde7fd72e738865e6ed3208495f966f4f21daac (diff)
downloadgo-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar.gz
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar.bz2
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar.lz
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar.xz
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.tar.zst
go-tangerine-ff1630834cddb768826cec0e555a645e13c7bc9c.zip
xeth: removed `Value`
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go6
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()