Skip to content

Commit

Permalink
Fix version for zeta (#160)
Browse files Browse the repository at this point in the history
* Fix version for zeta

* fix test suite
  • Loading branch information
danielmbirochi authored Feb 14, 2024
1 parent c2db3c7 commit 0ded6b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions coin/coins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1004,12 +1004,12 @@
name: NativeZetaChain
decimals: 18
blockchain: Cosmos
isTokenSupported: false ## TO VALIDATE
isTokenSupported: false

- id: 20007000
symbol: ZETA
handle: zetaevm
name: Zeta EVM
decimals: 18
blockchain: Ethereum
isTokenSupported: false ## TO VALIDATE
isTokenSupported: false
4 changes: 2 additions & 2 deletions types/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,10 @@ func GetTokenVersion(tokenType string) (TokenVersion, error) {
case BASE, AKASH, AGORIC, AXELAR, JUNO, SEI, OPBNB:
return TokenVersionV13, nil
case KAVAEVM, BOBA, METIS, NEON, LINEA, ACA, ACALAEVM, CONFLUX, IOTEXEVM, KLAYTN, MOONRIVER, MOONBEAM, MANTLE,
NATIVEINJECTIVE, MANTA:
NATIVEINJECTIVE, MANTA, ZETACHAIN, ZETAEVM:
return TokenVersionV14, nil
case BRC20, ERC721, ERC1155, EOS, NEP5, VET, ONTOLOGY, THETA, TOMO, POA, OASIS, ALGORAND, METER, EVMOS_ERC20,
KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEEVMOS, CRYPTOORG, COSMOS, OSMOSIS, STARGAZE, ZETACHAIN, ZETAEVM:
KIP20, STRIDE, NEUTRON, FA2, CARDANO, NATIVEEVMOS, CRYPTOORG, COSMOS, OSMOSIS, STARGAZE:
return TokenVersionUndefined, nil
default:
// This should not happen, as it is guarded by TestGetTokenVersionImplementEverySupportedTokenTypes
Expand Down
4 changes: 2 additions & 2 deletions types/token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,14 +558,14 @@ func TestGetTokenVersion(t *testing.T) {
{
"NativeZeta token version",
args{t: string(ZETACHAIN)},
TokenVersionUndefined,
TokenVersionV14,
nil,
},

{
"ZetaEVM token version",
args{t: string(ZETAEVM)},
TokenVersionUndefined,
TokenVersionV14,
nil,
},
}
Expand Down

0 comments on commit 0ded6b1

Please sign in to comment.