aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/evm.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-04 23:26:16 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:52 +0800
commitded365703a159e0f22a2c25a9b5e5791cdc43886 (patch)
tree9aef3054a55eadf9b3d3de56024989185c24487c /core/vm/evm.go
parent152224c763be7f4ad73f8382fcf9104938e13a21 (diff)
downloaddexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar.gz
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar.bz2
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar.lz
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar.xz
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.tar.zst
dexon-ded365703a159e0f22a2c25a9b5e5791cdc43886.zip
core: vm: fix bug and add gas usage
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r--core/vm/evm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go
index fcab628e1..e22acb81c 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -204,7 +204,7 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas
if evm.ChainConfig().IsByzantium(evm.BlockNumber) {
precompiles = PrecompiledContractsByzantium
}
- if precompiles[addr] == nil && evm.ChainConfig().IsEIP158(evm.BlockNumber) && value.Sign() == 0 {
+ if precompiles[addr] == nil && evm.ChainConfig().IsEIP158(evm.BlockNumber) && value.Sign() == 0 && addr != GovernanceContractAddress {
// Calling a non existing account, don't do anything, but ping the tracer
if evm.vmConfig.Debug && evm.depth == 0 {
evm.vmConfig.Tracer.CaptureStart(caller.Address(), addr, false, input, gas, value)