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@byzantine-lab.io>2019-06-12 17:23:38 +0800
commitaa1cac0063ca50567c981f31017cf6cdef9249f3 (patch)
treed367d301bf9ddd3ef72d8f261e4effebf426ce7a /core/vm/evm.go
parent7388a68f17bd6511c0ae1ddd44a4b182ea04f2eb (diff)
downloadgo-tangerine-aa1cac0063ca50567c981f31017cf6cdef9249f3.tar.gz
go-tangerine-aa1cac0063ca50567c981f31017cf6cdef9249f3.tar.zst
go-tangerine-aa1cac0063ca50567c981f31017cf6cdef9249f3.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)