Skip to content

Commit

Permalink
fix: GetChain using Id
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed May 8, 2023
1 parent 8ad22e5 commit 2f44eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (a *AssetRepo) GetMainChains(option *Option) ([]*entity.Chain, error) {
// GetChain return chain by its id
func (a *AssetRepo) GetChain(Id string) *entity.Chain {
for _, c := range a.Chains {
if c.ChainId == Id {
if c.Id == Id {
return c
}
}
Expand Down

0 comments on commit 2f44eef

Please sign in to comment.