From aa1cac0063ca50567c981f31017cf6cdef9249f3 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 4 Oct 2018 23:26:16 +0800 Subject: core: vm: fix bug and add gas usage --- core/vm/evm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/vm/evm.go') 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) -- cgit