diff options
Diffstat (limited to 'core/vm/oracle.go')
-rw-r--r-- | core/vm/oracle.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/vm/oracle.go b/core/vm/oracle.go index 81755cd9b..0d4c10d9e 100644 --- a/core/vm/oracle.go +++ b/core/vm/oracle.go @@ -38,9 +38,11 @@ type OracleContract interface { } // A map representing available system oracle contracts. -var OracleContracts = map[common.Address]OracleContract{ - GovernanceContractAddress: &GovernanceContract{ - coreDKGUtils: &defaultCoreDKGUtils{}, +var OracleContracts = map[common.Address]func() OracleContract{ + GovernanceContractAddress: func() OracleContract { + return &GovernanceContract{ + coreDKGUtils: &defaultCoreDKGUtils{}, + } }, } |