fixup! chore(core): add coin support info for T3T1

Ioan Bizău 4 weeks ago
parent 6bc7c50dbe
commit 37edf2f10d

@ -127,7 +127,7 @@ def get_features() -> Features:
]
# We don't support some currencies on T2B1 and T3T1 (see #2793)
if not utils.TREZOR_MODEL in ("T2B1", "T3T1"):
if utils.TREZOR_MODEL not in ("T2B1", "T3T1"):
f.capabilities.extend(
[
Capability.NEM,

@ -1,6 +1,6 @@
from common import * # isort:skip
if not utils.TREZOR_MODEL in ("T2B1", "T3T1"):
if utils.TREZOR_MODEL not in ("T2B1", "T3T1"):
from trezor.crypto import bip39
from trezor.enums import AmountUnit, OutputScriptType
from trezor.enums.RequestType import TXFINISHED, TXINPUT, TXMETA, TXOUTPUT
@ -405,5 +405,5 @@ class TestSignTxDecred(unittest.TestCase):
if __name__ == "__main__":
if not utils.TREZOR_MODEL in ("T2B1", "T3T1"):
if utils.TREZOR_MODEL not in ("T2B1", "T3T1"):
unittest.main()

@ -22,7 +22,7 @@ class TestCoins(unittest.TestCase):
("ZEC", "Zcash", 7352),
("TAZ", "Zcash Testnet", 7461),
]
if not utils.TREZOR_MODEL in ("T2B1", "T3T1"):
if utils.TREZOR_MODEL not in ("T2B1", "T3T1"):
ref.extend(
[
("NMC", "Namecoin", 52),

@ -47,7 +47,7 @@ FAKE_TXHASH_a63dbe = bytes.fromhex(
"a63dbedd8cd284bf0d3c468e84b9b0eeb14c3a08824eab8f80e7723a299f30db"
)
pytestmark = [pytest.mark.altcoin, pytest.mark.skip_t2b1]
pytestmark = [pytest.mark.altcoin, pytest.mark.skip_t2b1, pytest.mark.skip_t3t1]
# All data taken from T1

@ -40,7 +40,7 @@ TXHASH_15575a = bytes.fromhex(
"15575a1c874bd60a819884e116c42e6791c8283ce1fc3b79f0d18531a61bbb8a"
)
pytestmark = [pytest.mark.altcoin, pytest.mark.skip_t2b1]
pytestmark = [pytest.mark.altcoin, pytest.mark.skip_t2b1, pytest.mark.skip_t3t1]
def test_send_dash(client: Client):

@ -34,7 +34,8 @@ def case(
*args: Any,
altcoin: bool = False,
skip_t1b1: bool = False,
skip_t2b1: bool = False
skip_t2b1: bool = False,
skip_t3t1: bool = False
):
marks = []
if altcoin:
@ -43,6 +44,8 @@ def case(
marks.append(pytest.mark.skip_t1b1)
if skip_t2b1:
marks.append(pytest.mark.skip_t2b1)
if skip_t3t1:
marks.append(pytest.mark.skip_t3t1)
return pytest.param(*args, id=id, marks=marks)
@ -263,6 +266,7 @@ VECTORS = ( # case name, coin_name, path, script_type, address, message, signat
"206b1f8ba47ef9eaf87aa900e41ab1e97f67e8c09292faa4acf825228d074c4b774484046dcb1d9bbf0603045dbfb328c3e1b0c09c5ae133e89e604a67a1fc6cca",
altcoin=True,
skip_t2b1=True,
skip_t3t1=True,
),
case(
"decred-empty",
@ -275,6 +279,7 @@ VECTORS = ( # case name, coin_name, path, script_type, address, message, signat
"1fd2d57490b44a0361c7809768cad032d41ba1d4b7a297f935fc65ae05f71de7ea0c6c6fd265cc5154f1fa4acd7006b6a00ddd67fb7333c1594aff9120b3ba8024",
altcoin=True,
skip_t2b1=True,
skip_t3t1=True,
),
)

@ -36,12 +36,14 @@ PREV_TXES = {PREV_HASH: PREV_TX}
pytestmark = [pytest.mark.skip_t1b1, pytest.mark.experimental]
def case(id, *args, altcoin: bool = False, skip_t2b1: bool = False):
def case(id, *args, altcoin: bool = False, skip_t2b1: bool = False, skip_t3t1: bool = False):
marks = []
if altcoin:
marks.append(pytest.mark.altcoin)
if skip_t2b1:
marks.append(pytest.mark.skip_t2b1)
if skip_t3t1:
marks.append(pytest.mark.skip_t3t1)
return pytest.param(*args, id=id, marks=marks)
@ -115,12 +117,14 @@ SERIALIZED_TX = "01000000000101e29305e85821ea86f2bca1fcfe45e7cb0c8de87b612479ee6
(PaymentRequestParams([0], memos1, get_nonce=True),),
altcoin=True,
skip_t2b1=True,
skip_t3t1=True,
),
case(
"out1",
(PaymentRequestParams([1], memos2, get_nonce=True),),
altcoin=True,
skip_t2b1=True,
skip_t3t1=True,
),
case("out2", (PaymentRequestParams([2], [], get_nonce=True),)),
case(

Loading…
Cancel
Save