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 {
cs := new(Contracts)
gas := NewGAS()
neo := NewNEO()
gas := newGAS()
neo := newNEO()
neo.GAS = gas
gas.NEO = neo

View file

@ -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"

View file

@ -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"