Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
Add TRC21 token type for tomochcain
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup committed Sep 11, 2020
1 parent 78f5f41 commit 5fd976e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/blockatlas/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const (
TokenTypeETC20 TokenType = "ETC20"
TokenTypePOA20 TokenType = "POA20"
TokenTypeTRC20 TokenType = "TRC20"
TokenTypeTRC21 TokenType = "TRC21"
TokenTypeCLO20 TokenType = "CLO20"
TokenTypeGO20 TokenType = "G020"
TokenTypeWAN20 TokenType = "WAN20"
Expand Down Expand Up @@ -395,7 +396,7 @@ func GetEthereumTokenTypeByIndex(coinIndex uint) TokenType {
case coin.Gochain().ID:
tokenType = TokenTypeGO20
case coin.Tomochain().ID:
tokenType = TokenTypeTRC20
tokenType = TokenTypeTRC21
case coin.Bsc().ID, coin.Smartchain().ID:
tokenType = TokenTypeBEP20
default:
Expand Down

0 comments on commit 5fd976e

Please sign in to comment.