Skip to content

Commit

Permalink
fix: change private methods of asset and chain entity
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed May 7, 2023
1 parent 44f70de commit 217b03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions entity/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (a *Asset) GetDescription() string {
return a.Description
}

func (a *Asset) hasErc20() bool {
func (a *Asset) HasErc20() bool {
for _, s := range a.Standards {
if strings.ToUpper(s) == "ERC20" {
return true
Expand All @@ -66,7 +66,7 @@ func (a *Asset) hasErc20() bool {
return false
}

func (a *Asset) hasErc721() bool {
func (a *Asset) HasErc721() bool {
for _, s := range a.Standards {
if strings.ToUpper(s) == "ERC721" {
return true
Expand Down
4 changes: 2 additions & 2 deletions entity/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func (c *Chain) GetChainType() ChainType {
return c.Type
}

func (c *Chain) isMainNet() bool {
func (c *Chain) IsMainNet() bool {
if c.Type == MainChainType {
return true
}

return false
}

func (c *Chain) isTestNet() bool {
func (c *Chain) IsTestNet() bool {
if c.Type == TestChainType {
return true
}
Expand Down

0 comments on commit 217b03a

Please sign in to comment.