aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/evm.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r--core/vm/evm.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go
index 31902621b..fcab628e1 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -43,6 +43,9 @@ type (
// run runs the given contract and takes care of running precompiles with a fallback to the byte code interpreter.
func run(evm *EVM, contract *Contract, input []byte, readOnly bool) ([]byte, error) {
if contract.CodeAddr != nil {
+ if *contract.CodeAddr == GovernanceContractAddress {
+ return RunGovernanceContract(evm, input, contract)
+ }
precompiles := PrecompiledContractsHomestead
if evm.ChainConfig().IsByzantium(evm.BlockNumber) {
precompiles = PrecompiledContractsByzantium