forked from cerc-io/plugeth
Getting rid of deprecated methods
This commit is contained in:
parent
b01cb2406f
commit
78aad9a192
@ -721,18 +721,12 @@ func (vm *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
|
|||||||
case SUICIDE:
|
case SUICIDE:
|
||||||
require(1)
|
require(1)
|
||||||
|
|
||||||
receiver := vm.state.GetAccount(stack.Pop().Bytes())
|
receiver := vm.state.GetOrNewStateObject(stack.Pop().Bytes())
|
||||||
|
|
||||||
receiver.AddAmount(closure.object.Amount)
|
receiver.AddAmount(closure.object.Amount)
|
||||||
|
|
||||||
closure.object.MarkForDeletion()
|
closure.object.MarkForDeletion()
|
||||||
|
|
||||||
/*
|
|
||||||
trie := closure.object.state.trie
|
|
||||||
trie.NewIterator().Each(func(key string, v *ethutil.Value) {
|
|
||||||
trie.Delete(key)
|
|
||||||
})
|
|
||||||
*/
|
|
||||||
|
|
||||||
fallthrough
|
fallthrough
|
||||||
case STOP: // Stop the closure
|
case STOP: // Stop the closure
|
||||||
vm.Endl()
|
vm.Endl()
|
||||||
|
Loading…
Reference in New Issue
Block a user