diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-07 19:59:32 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-07 19:59:32 +0800 |
commit | 78aad9a19268d02519e3d777061ebc7a877b0a1d (patch) | |
tree | 7593c879475d32defa0474232eea75f5b2c327ae | |
parent | b01cb2406f94745277fe05dfa74c6e5d42af1c6a (diff) | |
download | go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar.gz go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar.bz2 go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar.lz go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar.xz go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.tar.zst go-tangerine-78aad9a19268d02519e3d777061ebc7a877b0a1d.zip |
Getting rid of deprecated methods
-rw-r--r-- | ethchain/vm.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ethchain/vm.go b/ethchain/vm.go index 769333649..71605b069 100644 --- a/ethchain/vm.go +++ b/ethchain/vm.go @@ -721,18 +721,12 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) { case SUICIDE: require(1) - receiver := vm.state.GetAccount(stack.Pop().Bytes()) + receiver := vm.state.GetOrNewStateObject(stack.Pop().Bytes()) + receiver.AddAmount(closure.object.Amount) closure.object.MarkForDeletion() - /* - trie := closure.object.state.trie - trie.NewIterator().Each(func(key string, v *ethutil.Value) { - trie.Delete(key) - }) - */ - fallthrough case STOP: // Stop the closure vm.Endl() |