From 6b201893fa7243804c7fc4fd6a1f60b8259fc346 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 2 Oct 2020 13:50:56 +0300 Subject: [PATCH] core: unexport NewNEO() and NewGAS() methods --- pkg/core/native/contract.go | 4 ++-- pkg/core/native/native_gas.go | 4 ++-- pkg/core/native/native_neo.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/core/native/contract.go b/pkg/core/native/contract.go index 45490b7f7..d280b0119 100644 --- a/pkg/core/native/contract.go +++ b/pkg/core/native/contract.go @@ -39,8 +39,8 @@ func (cs *Contracts) ByHash(h util.Uint160) interop.Contract { func NewContracts() *Contracts { cs := new(Contracts) - gas := NewGAS() - neo := NewNEO() + gas := newGAS() + neo := newNEO() neo.GAS = gas gas.NEO = neo diff --git a/pkg/core/native/native_gas.go b/pkg/core/native/native_gas.go index 310131086..2913ed45e 100644 --- a/pkg/core/native/native_gas.go +++ b/pkg/core/native/native_gas.go @@ -24,8 +24,8 @@ const gasContractID = -2 const GASFactor = NEOTotalSupply const initialGAS = 30000000 -// NewGAS returns GAS native contract. -func NewGAS() *GAS { +// newGAS returns GAS native contract. +func newGAS() *GAS { g := &GAS{} nep5 := newNEP5Native(gasName) nep5.symbol = "gas" diff --git a/pkg/core/native/native_neo.go b/pkg/core/native/native_neo.go index e41979269..dc48a8d5b 100644 --- a/pkg/core/native/native_neo.go +++ b/pkg/core/native/native_neo.go @@ -89,8 +89,8 @@ func makeValidatorKey(key *keys.PublicKey) []byte { return b } -// NewNEO returns NEO native contract. -func NewNEO() *NEO { +// newNEO returns NEO native contract. +func newNEO() *NEO { n := &NEO{} nep5 := newNEP5Native(neoName) nep5.symbol = "neo"