diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-10-01 20:44:53 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-10-01 21:01:58 +0800 |
commit | cb84e3f02953f2df166ae69369d222dcbbd7d78d (patch) | |
tree | 68eb52c91a136e820f3656e394847c4e695afa63 /core/vm/runtime | |
parent | d8715fba1a366944a069397775fc52a30358eff3 (diff) | |
download | go-tangerine-cb84e3f02953f2df166ae69369d222dcbbd7d78d.tar.gz go-tangerine-cb84e3f02953f2df166ae69369d222dcbbd7d78d.tar.zst go-tangerine-cb84e3f02953f2df166ae69369d222dcbbd7d78d.zip |
cmd, core, internal, light, tests: avoid hashing the code in the VM
Diffstat (limited to 'core/vm/runtime')
-rw-r--r-- | core/vm/runtime/runtime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index 309d508c3..6d980cb32 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -104,7 +104,7 @@ func Execute(code, input []byte, cfg *Config) ([]byte, *state.StateDB, error) { receiver = cfg.State.CreateAccount(common.StringToAddress("contract")) ) // set the receiver's (the executing contract) code for execution. - receiver.SetCode(code) + receiver.SetCode(crypto.Keccak256Hash(code), code) // Call the code with the given configuration. ret, err := vmenv.Call( |