mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-27 15:51:02 +00:00
tests/wallet: UiConfirmTotal includes fee
This commit is contained in:
parent
889315ba00
commit
741443165c
@ -73,7 +73,7 @@ class TestSignSegwitTxNativeP2WPKH(unittest.TestCase):
|
||||
signing.UiConfirmOutput(out2, coin),
|
||||
True,
|
||||
|
||||
signing.UiConfirmTotal(12300000 - 11000, 11000, coin),
|
||||
signing.UiConfirmTotal(12300000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
@ -165,7 +165,7 @@ class TestSignSegwitTxNativeP2WPKH(unittest.TestCase):
|
||||
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=None),
|
||||
TxAck(tx=TransactionType(outputs=[out2])),
|
||||
|
||||
signing.UiConfirmTotal(5000000, 11000, coin),
|
||||
signing.UiConfirmTotal(5000000 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
|
@ -73,7 +73,7 @@ class TestSignSegwitTxNativeP2WPKH_GRS(unittest.TestCase):
|
||||
signing.UiConfirmOutput(out2, coin),
|
||||
True,
|
||||
|
||||
signing.UiConfirmTotal(12300000 - 11000, 11000, coin),
|
||||
signing.UiConfirmTotal(12300000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
@ -165,7 +165,7 @@ class TestSignSegwitTxNativeP2WPKH_GRS(unittest.TestCase):
|
||||
TxRequest(request_type=TXOUTPUT, details=TxRequestDetailsType(request_index=1, tx_hash=None), serialized=None),
|
||||
TxAck(tx=TransactionType(outputs=[out2])),
|
||||
|
||||
signing.UiConfirmTotal(5000000, 11000, coin),
|
||||
signing.UiConfirmTotal(5000000 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
|
@ -73,7 +73,7 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
||||
signing.UiConfirmOutput(out2, coin),
|
||||
True,
|
||||
|
||||
signing.UiConfirmTotal(123445789, 11000, coin),
|
||||
signing.UiConfirmTotal(123445789 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
@ -167,7 +167,7 @@ class TestSignSegwitTxP2WPKHInP2SH(unittest.TestCase):
|
||||
serialized=None),
|
||||
TxAck(tx=TransactionType(outputs=[out2])),
|
||||
|
||||
signing.UiConfirmTotal(12300000, 11000, coin),
|
||||
signing.UiConfirmTotal(12300000 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
|
@ -73,7 +73,7 @@ class TestSignSegwitTxP2WPKHInP2SH_GRS(unittest.TestCase):
|
||||
signing.UiConfirmOutput(out2, coin),
|
||||
True,
|
||||
|
||||
signing.UiConfirmTotal(123445789, 11000, coin),
|
||||
signing.UiConfirmTotal(123445789 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
@ -167,7 +167,7 @@ class TestSignSegwitTxP2WPKHInP2SH_GRS(unittest.TestCase):
|
||||
serialized=None),
|
||||
TxAck(tx=TransactionType(outputs=[out2])),
|
||||
|
||||
signing.UiConfirmTotal(12300000, 11000, coin),
|
||||
signing.UiConfirmTotal(12300000 + 11000, 11000, coin),
|
||||
True,
|
||||
|
||||
# sign tx
|
||||
|
@ -73,7 +73,7 @@ class TestSignTxFeeThreshold(unittest.TestCase):
|
||||
True,
|
||||
signing.UiConfirmFeeOverThreshold(100000, coin_bitcoin),
|
||||
True,
|
||||
signing.UiConfirmTotal(290000, 100000, coin_bitcoin),
|
||||
signing.UiConfirmTotal(290000 + 100000, 100000, coin_bitcoin),
|
||||
True,
|
||||
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
|
||||
]
|
||||
@ -135,7 +135,7 @@ class TestSignTxFeeThreshold(unittest.TestCase):
|
||||
TxAck(tx=TransactionType(outputs=[out1])),
|
||||
signing.UiConfirmOutput(out1, coin_bitcoin),
|
||||
True,
|
||||
signing.UiConfirmTotal(300000, 90000, coin_bitcoin),
|
||||
signing.UiConfirmTotal(300000 + 90000, 90000, coin_bitcoin),
|
||||
True,
|
||||
TxRequest(request_type=TXINPUT, details=TxRequestDetailsType(request_index=0, tx_hash=None), serialized=None),
|
||||
]
|
||||
|
@ -72,7 +72,7 @@ class TestSignTx(unittest.TestCase):
|
||||
TxAck(tx=TransactionType(outputs=[out1])),
|
||||
signing.UiConfirmOutput(out1, coin_bitcoin),
|
||||
True,
|
||||
signing.UiConfirmTotal(380000, 10000, coin_bitcoin),
|
||||
signing.UiConfirmTotal(380000 + 10000, 10000, coin_bitcoin),
|
||||
True,
|
||||
# ButtonRequest(code=ButtonRequest_ConfirmOutput),
|
||||
# ButtonRequest(code=ButtonRequest_SignTx),
|
||||
|
@ -64,7 +64,7 @@ class TestSignTx_GRS(unittest.TestCase):
|
||||
TxAck(tx=TransactionType(outputs=[out1])),
|
||||
signing.UiConfirmOutput(out1, coin),
|
||||
True,
|
||||
signing.UiConfirmTotal(210016 - 192, 192, coin),
|
||||
signing.UiConfirmTotal(210016, 192, coin),
|
||||
True,
|
||||
# ButtonRequest(code=ButtonRequest_ConfirmOutput),
|
||||
# ButtonRequest(code=ButtonRequest_SignTx),
|
||||
|
Loading…
Reference in New Issue
Block a user