diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-04 23:26:16 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d (patch) | |
tree | 22ce85b289356970a7f1c58bb396447b1309bc69 /core/vm/evm.go | |
parent | d93833e597dd47d5423df5d20ad92a95ae62689a (diff) | |
download | dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar.gz dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar.bz2 dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar.lz dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar.xz dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.tar.zst dexon-3bbf9a8358bef8dc9924c8af7fc2ad0a91171d1d.zip |
core: vm: fix bug and add gas usage
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 2 |
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) |