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

change type #142

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion types/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func GetChainFromAssetType(assetType string) (coin.Coin, error) {
return coin.Aurora(), nil
case ALGORAND:
return coin.Algorand(), nil
case KAVAERC20:
case KAVAEVM:
return coin.Kavaevm(), nil
case METER:
return coin.Meter(), nil
Expand Down
8 changes: 4 additions & 4 deletions types/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const (
KRC20 TokenType = "KRC20"
AURORA TokenType = "AURORA"
ALGORAND TokenType = "ASA"
KAVAERC20 TokenType = "KAVAERC20"
KAVAEVM TokenType = "KAVAEVM"
METER TokenType = "METER"
EVMOS_ERC20 TokenType = "EVMOS_ERC20"
KIP20 TokenType = "KIP20"
Expand Down Expand Up @@ -190,7 +190,7 @@ func GetTokenTypes() []TokenType {
KRC20,
AURORA,
ALGORAND,
KAVAERC20,
KAVAEVM,
METER,
EVMOS_ERC20,
KIP20,
Expand Down Expand Up @@ -368,7 +368,7 @@ func GetTokenVersion(tokenType string) (TokenVersion, error) {
return TokenVersionV12, nil
case BASE, AKASH, AGORIC, AXELAR, JUNO, SEI, OPBNB:
return TokenVersionV13, nil
case KAVAERC20, BOBA, METIS, NEON, LINEA, ACA, ACALAEVM, CONFLUX, IOTEXEVM, KLAYTN, MOONRIVER, MOONBEAM:
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:
Expand Down Expand Up @@ -434,7 +434,7 @@ func GetEthereumTokenTypeByIndex(coinIndex uint) (TokenType, error) {
case coin.ARBITRUM:
tokenType = ARBITRUM
case coin.KAVAEVM:
tokenType = KAVAERC20
tokenType = KAVAEVM
case coin.METER:
tokenType = METER
case coin.EVMOS:
Expand Down
Loading