core: unexport NewNEO() and NewGAS() methods

This commit is contained in:
Anna Shaleva 2020-10-02 13:50:56 +03:00
parent 0e5a2f34c0
commit 6b201893fa
3 changed files with 6 additions and 6 deletions

View file

@ -39,8 +39,8 @@ func (cs *Contracts) ByHash(h util.Uint160) interop.Contract {
func NewContracts() *Contracts { func NewContracts() *Contracts {
cs := new(Contracts) cs := new(Contracts)
gas := NewGAS() gas := newGAS()
neo := NewNEO() neo := newNEO()
neo.GAS = gas neo.GAS = gas
gas.NEO = neo gas.NEO = neo

View file

@ -24,8 +24,8 @@ const gasContractID = -2
const GASFactor = NEOTotalSupply const GASFactor = NEOTotalSupply
const initialGAS = 30000000 const initialGAS = 30000000
// NewGAS returns GAS native contract. // newGAS returns GAS native contract.
func NewGAS() *GAS { func newGAS() *GAS {
g := &GAS{} g := &GAS{}
nep5 := newNEP5Native(gasName) nep5 := newNEP5Native(gasName)
nep5.symbol = "gas" nep5.symbol = "gas"

View file

@ -89,8 +89,8 @@ func makeValidatorKey(key *keys.PublicKey) []byte {
return b return b
} }
// NewNEO returns NEO native contract. // newNEO returns NEO native contract.
func NewNEO() *NEO { func newNEO() *NEO {
n := &NEO{} n := &NEO{}
nep5 := newNEP5Native(neoName) nep5 := newNEP5Native(neoName)
nep5.symbol = "neo" nep5.symbol = "neo"