diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-12 05:51:26 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-12 05:52:27 +0800 |
commit | 6c9e503eb8d41d331d6a74e69539a06590072190 (patch) | |
tree | b9fd4b7abf20d9a901cd4e0f2dc3d70475cdc527 /cmd/evm | |
parent | 75ee3b3f089e703b728bb301cc6b2abe4c111c41 (diff) | |
download | dexon-6c9e503eb8d41d331d6a74e69539a06590072190.tar.gz dexon-6c9e503eb8d41d331d6a74e69539a06590072190.tar.zst dexon-6c9e503eb8d41d331d6a74e69539a06590072190.zip |
Removed all implicit logging. Fixed gas issues and jump errors
Diffstat (limited to 'cmd/evm')
-rw-r--r-- | cmd/evm/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 0cc0af62a..2b4d47684 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -46,6 +46,7 @@ var ( gas = flag.String("gas", "1000000", "gas amount") price = flag.String("price", "0", "gas price") dump = flag.Bool("dump", false, "dump state after run") + data = flag.String("data", "", "data") ) func perr(v ...interface{}) { @@ -66,7 +67,7 @@ func main() { tstart := time.Now() env := NewVmEnv() - ret, _, e := closure.Call(vm.New(env, vm.DebugVmTy), nil) + ret, _, e := closure.Call(vm.New(env, vm.DebugVmTy), ethutil.Hex2Bytes(*data)) logger.Flush() if e != nil { @@ -110,7 +111,7 @@ func (VmEnv) GasLimit() *big.Int { return nil } func (VmEnv) Difficulty() *big.Int { return nil } func (VmEnv) Value() *big.Int { return nil } func (self *VmEnv) State() *state.State { return self.state } -func (VmEnv) AddLog(state.Log) {} +func (VmEnv) AddLog(*state.Log) {} func (VmEnv) Transfer(from, to vm.Account, amount *big.Int) error { return nil } |