Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #143

Closed
wants to merge 4 commits into from
Closed

Fixes #143

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions types/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const (
TT20 TokenType = "TT20"
KAVA TokenType = "KAVA"
COSMOS TokenType = "COSMOS"
CRYPTOORG TokenType = "CRYPTOORG"
NATIVEEVMOS TokenType = "NATIVEEVMOS"
NATIVEINJECTIVE TokenType = "NATIVEINJECTIVE"
STARGAZE TokenType = "STARGAZE"
Expand Down Expand Up @@ -158,7 +157,6 @@ func GetTokenTypes() []TokenType {
AGORIC,
AKASH,
AXELAR,
CRYPTOORG,
NATIVEEVMOS,
NATIVEINJECTIVE,
OSMOSIS,
Expand Down Expand Up @@ -273,7 +271,7 @@ func GetTokenType(c uint, tokenID string) (string, bool) {
case coin.COSMOS:
return string(COSMOS), true
case coin.CRYPTOORG:
return string(CRYPTOORG), true
return string(CRC20), true
case coin.NATIVEEVMOS:
return string(NATIVEEVMOS), true
case coin.NATIVEINJECTIVE:
Expand Down Expand Up @@ -371,7 +369,7 @@ func GetTokenVersion(tokenType string) (TokenVersion, error) {
case KAVAEVM, BOBA, METIS, NEON, LINEA, ACA, ACALAEVM, CONFLUX, IOTEXEVM, KLAYTN, MOONRIVER, MOONBEAM:
return TokenVersionV14, nil
case BRC20, ERC721, ERC1155, EOS, NEP5, VET, ONTOLOGY, THETA, TOMO, POA, OASIS, ALGORAND, METER, EVMOS_ERC20,
KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEINJECTIVE, NATIVEEVMOS, CRYPTOORG, COSMOS, OSMOSIS, STARGAZE:
KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEINJECTIVE, NATIVEEVMOS, COSMOS, OSMOSIS, STARGAZE:
return TokenVersionUndefined, nil
default:
// This should not happen, as it is guarded by TestGetTokenVersionImplementEverySupportedTokenTypes
Expand Down