Skip to content

Commit

Permalink
opbnb (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
defisaur authored Dec 22, 2023
1 parent f1a4930 commit ee074e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion types/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func GetChainFromAssetType(assetType string) (coin.Coin, error) {
return coin.Cryptoorg(), nil
case COSMOS:
return coin.Cosmos(), nil
case OBNB:
case OPBNB:
return coin.Opbnb(), nil
case LINEA:
return coin.Linea(), nil
Expand Down
8 changes: 4 additions & 4 deletions types/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const (
CARDANO TokenType = "CARDANO"
NEON TokenType = "NEON"
IOTEXEVM TokenType = "XRC20"
OBNB TokenType = "OBNB"
OPBNB TokenType = "OPBNB"
LINEA TokenType = "LINEA"
MANTLE TokenType = "MANTLE"
)
Expand Down Expand Up @@ -213,7 +213,7 @@ func GetTokenTypes() []TokenType {
SEI,
CARDANO,
NEON,
OBNB,
OPBNB,
LINEA,
ACALAEVM,
MANTLE,
Expand Down Expand Up @@ -370,7 +370,7 @@ func GetTokenVersion(tokenType string) (TokenVersion, error) {
return TokenVersionV11, nil
case TON, POLYGONZKEVM, ZKSYNC, SUI:
return TokenVersionV12, nil
case BASE, AKASH, AGORIC, AXELAR, JUNO, SEI, OBNB:
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:
return TokenVersionV14, nil
Expand Down Expand Up @@ -478,7 +478,7 @@ func GetEthereumTokenTypeByIndex(coinIndex uint) (TokenType, error) {
case coin.IOTEXEVM:
tokenType = IOTEXEVM
case coin.OPBNB:
tokenType = OBNB
tokenType = OPBNB
case coin.LINEA:
tokenType = LINEA
case coin.MANTLE:
Expand Down

0 comments on commit ee074e4

Please sign in to comment.