Skip to content

Commit

Permalink
Set tezos-new ticker to XTZ
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Nov 23, 2023
1 parent ec9f0e1 commit 5a75f9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions test/python/apps/cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .stellar import XLM_PACKED_DERIVATION_PATH, XLM_CONF
from .solana_utils import SOL_PACKED_DERIVATION_PATH, SOL_CONF
from .xrp import XRP_PACKED_DERIVATION_PATH, XRP_CONF
from .tezos_new import NTZ_PACKED_DERIVATION_PATH, NTZ_CONF
from .tezos_new import XTZ_PACKED_DERIVATION_PATH, XTZ_CONF
from .bsc import BSC_PACKED_DERIVATION_PATH, BSC_CONF

TICKER_ID_TO_CONF = {
Expand All @@ -22,7 +22,7 @@
"XLM": XLM_CONF,
"SOL": SOL_CONF,
"XRP": XRP_CONF,
"NTZ": NTZ_CONF,
"XTZ": XTZ_CONF,
"BSC": BSC_CONF,
}

Expand All @@ -34,7 +34,7 @@
"XLM": XLM_PACKED_DERIVATION_PATH,
"SOL": SOL_PACKED_DERIVATION_PATH,
"XRP": XRP_PACKED_DERIVATION_PATH,
"NTZ": NTZ_PACKED_DERIVATION_PATH,
"XTZ": XTZ_PACKED_DERIVATION_PATH,
"BSC": BSC_PACKED_DERIVATION_PATH,
}

Expand All @@ -46,7 +46,7 @@
"XLM": XLM_PACKED_DERIVATION_PATH,
"SOL": SOL_PACKED_DERIVATION_PATH,
"XRP": XRP_PACKED_DERIVATION_PATH,
"NTZ": NTZ_PACKED_DERIVATION_PATH,
"XTZ": XTZ_PACKED_DERIVATION_PATH,
"BSC": BSC_PACKED_DERIVATION_PATH,
}

Expand Down
8 changes: 4 additions & 4 deletions test/python/apps/tezos_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
from ragger.utils import create_currency_config, RAPDU


NTZ_CONF = create_currency_config("NTZ", "Tezos Wallet", ("TZ", 6))
XTZ_CONF = create_currency_config("XTZ", "Tezos Wallet", ("XTZ", 6))

NTZ_PACKED_DERIVATION_PATH = pack_derivation_path("m/44'/1729'/0'")
XTZ_PACKED_DERIVATION_PATH = pack_derivation_path("m/44'/1729'/0'")

HASH_SIZE = 20

Expand Down Expand Up @@ -179,14 +179,14 @@ def _exchange_async(self, ins: INS, index: INDEX, payload: bytes = b"") -> Gener
yield

def get_public_key(self) -> RAPDU:
return self._exchange(INS.GET_PUBLIC_KEY, P1.FIRST, payload=NTZ_PACKED_DERIVATION_PATH)
return self._exchange(INS.GET_PUBLIC_KEY, P1.FIRST, payload=XTZ_PACKED_DERIVATION_PATH)

def sign_message(self, ins: INS = INS.SIGN_WITH_HASH, message: bytes = b"") -> RAPDU:

# todo: send the message by chunk instead of fail
assert len(message) <= MAX_PAYLOAD_SIZE, "Message to send is too long"

first_rapdu = self._exchange(ins, P1.FIRST, NTZ_PACKED_DERIVATION_PATH)
first_rapdu = self._exchange(ins, P1.FIRST, XTZ_PACKED_DERIVATION_PATH)
if first_rapdu.status != StatusCode.STATUS_OK:
return first_rapdu

Expand Down
2 changes: 1 addition & 1 deletion test/python/test_tezos_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# ExchangeTestRunner implementation for Tezos
class TezosTests(ExchangeTestRunner):
currency_ticker = "NTZ"
currency_ticker = "XTZ"
valid_destination_1 = encode_address("e6330795ffe18f873b83cb13662442b87bd98c22")
valid_destination_memo_1 = ""
valid_destination_2 = encode_address("e6330795ffe18f873b83cb13662442b87bd98c40")
Expand Down

0 comments on commit 5a75f9a

Please sign in to comment.