diff options
Diffstat (limited to 'core/execution.go')
-rw-r--r-- | core/execution.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/execution.go b/core/execution.go index ec04f6140..7f4c64758 100644 --- a/core/execution.go +++ b/core/execution.go @@ -149,6 +149,9 @@ func execDelegateCall(env vm.Environment, caller vm.ContractRef, originAddr, toA return nil, common.Address{}, vm.DepthError } + if value.Cmp(common.Big0) > 0 { + env.MarkCodeHash(env.Db().GetCodeHash(caller.Address())) + } snapshot := env.MakeSnapshot() var to vm.Account |