aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-13 23:13:40 +0800
committerGitHub <noreply@github.com>2017-02-13 23:13:40 +0800
commit0850f68fd17586370b102aa516739476db4913c2 (patch)
tree5d2f140139f3763a7da3c20a88acff96b58ec8ad /cmd/evm
parentf8f428cc18c5f70814d7b3937128781bac14bffd (diff)
parent57f4e9025757254536a738bb4771712038f1e763 (diff)
downloaddexon-0850f68fd17586370b102aa516739476db4913c2.tar
dexon-0850f68fd17586370b102aa516739476db4913c2.tar.gz
dexon-0850f68fd17586370b102aa516739476db4913c2.tar.bz2
dexon-0850f68fd17586370b102aa516739476db4913c2.tar.lz
dexon-0850f68fd17586370b102aa516739476db4913c2.tar.xz
dexon-0850f68fd17586370b102aa516739476db4913c2.tar.zst
dexon-0850f68fd17586370b102aa516739476db4913c2.zip
Merge pull request #3668 from obscuren/revert-gas64
Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"
Diffstat (limited to 'cmd/evm')
-rw-r--r--cmd/evm/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 8af0cebbb..9f67e6628 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -156,7 +156,7 @@ func run(ctx *cli.Context) error {
ret, _, err = runtime.Create(input, &runtime.Config{
Origin: sender.Address(),
State: statedb,
- GasLimit: common.Big(ctx.GlobalString(GasFlag.Name)).Uint64(),
+ GasLimit: common.Big(ctx.GlobalString(GasFlag.Name)),
GasPrice: common.Big(ctx.GlobalString(PriceFlag.Name)),
Value: common.Big(ctx.GlobalString(ValueFlag.Name)),
EVMConfig: vm.Config{
@@ -172,7 +172,7 @@ func run(ctx *cli.Context) error {
ret, err = runtime.Call(receiver.Address(), common.Hex2Bytes(ctx.GlobalString(InputFlag.Name)), &runtime.Config{
Origin: sender.Address(),
State: statedb,
- GasLimit: common.Big(ctx.GlobalString(GasFlag.Name)).Uint64(),
+ GasLimit: common.Big(ctx.GlobalString(GasFlag.Name)),
GasPrice: common.Big(ctx.GlobalString(PriceFlag.Name)),
Value: common.Big(ctx.GlobalString(ValueFlag.Name)),
EVMConfig: vm.Config{