From 217b03a636eb0aec44810a5c1a8b96e6b824a2ee Mon Sep 17 00:00:00 2001 From: mj Date: Sun, 7 May 2023 15:28:58 +0330 Subject: [PATCH] fix: change private methods of asset and chain entity --- entity/asset.go | 4 ++-- entity/chain.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/entity/asset.go b/entity/asset.go index cf83b437..db4252d4 100644 --- a/entity/asset.go +++ b/entity/asset.go @@ -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 @@ -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 diff --git a/entity/chain.go b/entity/chain.go index 0879fd17..8b56dcdb 100644 --- a/entity/chain.go +++ b/entity/chain.go @@ -44,7 +44,7 @@ func (c *Chain) GetChainType() ChainType { return c.Type } -func (c *Chain) isMainNet() bool { +func (c *Chain) IsMainNet() bool { if c.Type == MainChainType { return true } @@ -52,7 +52,7 @@ func (c *Chain) isMainNet() bool { return false } -func (c *Chain) isTestNet() bool { +func (c *Chain) IsTestNet() bool { if c.Type == TestChainType { return true }