mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +00:00
core: unexport NewNEO() and NewGAS() methods
This commit is contained in:
parent
0e5a2f34c0
commit
6b201893fa
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue