aboutsummaryrefslogtreecommitdiffstats
path: root/mist/debugger.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
committerobscuren <geffobscura@gmail.com>2014-10-23 07:01:41 +0800
commit411b9800aed6bff666df5ffad799c49b17af9a43 (patch)
treefb0f89f42dff71fa4304145e05c90b62c9e10e23 /mist/debugger.go
parent2e45e4d0151e893574acdef5b61cb2ef9b31556c (diff)
downloadgo-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.gz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.bz2
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.lz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.xz
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.tar.zst
go-tangerine-411b9800aed6bff666df5ffad799c49b17af9a43.zip
Reflect VM Env changes
Diffstat (limited to 'mist/debugger.go')
-rw-r--r--mist/debugger.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/mist/debugger.go b/mist/debugger.go
index f81cddb1b..ebe18c78f 100644
--- a/mist/debugger.go
+++ b/mist/debugger.go
@@ -127,7 +127,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
state := self.lib.eth.StateManager().TransState()
account := self.lib.eth.StateManager().TransState().GetAccount(keyPair.Address())
contract := ethstate.NewStateObject([]byte{0})
- contract.Balance = value
+ contract.SetBalance(value)
self.SetAsm(script)
@@ -135,14 +135,14 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
callerClosure := vm.NewClosure(&ethstate.Message{}, account, contract, script, gas, gasPrice)
env := utils.NewEnv(state, block, account.Address(), value)
- vm := vm.NewDebugVm(env)
- vm.Dbg = self.Db
+ evm := vm.NewDebugVm(env)
+ evm.Dbg = self.Db
- self.vm = vm
+ self.vm = evm
self.Db.done = false
self.Logf("callsize %d", len(script))
go func() {
- ret, g, err := callerClosure.Call(vm, data)
+ ret, g, err := callerClosure.Call(evm, data)
tot := new(big.Int).Mul(g, gasPrice)
self.Logf("gas usage %v total price = %v (%v)", g, tot, ethutil.CurrencyToString(tot))
if err != nil {