Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_account_update/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_account_update/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_account_update/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_account_update/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_account_update/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part1/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part1/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/test_trx_custom_contract/part2/00005.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00000.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00001.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00002.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00003.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00004.png
Binary file modified tests/snapshots/flex/test_trx_delegate_resource/00005.png
Binary file modified tests/snapshots/flex/test_trx_ecdh_key/00000.png
Binary file modified tests/snapshots/flex/test_trx_ecdh_key/00001.png
Binary file modified tests/snapshots/flex/test_trx_ecdh_key/00002.png
Binary file modified tests/snapshots/flex/test_trx_ecdh_key/00003.png
Binary file modified tests/snapshots/flex/test_trx_ecdh_key/00004.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00000.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00001.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00002.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00003.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00004.png
Binary file modified tests/snapshots/flex/test_trx_exchange_create/00005.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00000.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00001.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00002.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00003.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00004.png
Binary file modified tests/snapshots/flex/test_trx_exchange_inject/00005.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00000.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00001.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00002.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00003.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00004.png
Binary file modified tests/snapshots/flex/test_trx_exchange_transaction/00005.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00000.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00001.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00002.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00003.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00004.png
Binary file modified tests/snapshots/flex/test_trx_exchange_withdraw/00005.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00000.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00001.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00002.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00003.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00004.png
Binary file modified tests/snapshots/flex/test_trx_freezeV2_balance/00005.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00000.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00001.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00002.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00003.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00004.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_bw/00005.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00000.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00001.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00002.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00003.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00004.png
Binary file modified tests/snapshots/flex/test_trx_freeze_balance_energy/00005.png
Binary file modified tests/snapshots/flex/test_trx_proposal_approve/00000.png
Binary file modified tests/snapshots/flex/test_trx_proposal_approve/00001.png
Binary file modified tests/snapshots/flex/test_trx_proposal_approve/00002.png
Binary file modified tests/snapshots/flex/test_trx_proposal_approve/00003.png
Binary file modified tests/snapshots/flex/test_trx_proposal_approve/00004.png
Binary file modified tests/snapshots/flex/test_trx_proposal_create/00000.png
Binary file modified tests/snapshots/flex/test_trx_proposal_create/00001.png
Binary file modified tests/snapshots/flex/test_trx_proposal_create/00002.png
Binary file modified tests/snapshots/flex/test_trx_proposal_create/00003.png
Binary file modified tests/snapshots/flex/test_trx_proposal_create/00004.png
Binary file modified tests/snapshots/flex/test_trx_proposal_delete/00000.png
Binary file modified tests/snapshots/flex/test_trx_proposal_delete/00001.png
Binary file modified tests/snapshots/flex/test_trx_proposal_delete/00002.png
Binary file modified tests/snapshots/flex/test_trx_proposal_delete/00003.png
Binary file modified tests/snapshots/flex/test_trx_proposal_delete/00004.png
Binary file modified tests/snapshots/flex/test_trx_send/00000.png
Binary file modified tests/snapshots/flex/test_trx_send/00001.png
Binary file modified tests/snapshots/flex/test_trx_send/00002.png
Binary file modified tests/snapshots/flex/test_trx_send/00003.png
Binary file modified tests/snapshots/flex/test_trx_send/00004.png
Binary file modified tests/snapshots/flex/test_trx_send/00005.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00002.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00003.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00004.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_with_name/00005.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00002.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00003.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00004.png
Binary file modified tests/snapshots/flex/test_trx_send_asset_without_name/00005.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00002.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00003.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00004.png
Binary file modified tests/snapshots/flex/test_trx_send_permissioned/00005.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part1/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part1/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part2/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part2/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part2/00002.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part2/00003.png
Binary file modified tests/snapshots/flex/test_trx_send_with_data_field/part2/00004.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00000.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00001.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00002.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00003.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00004.png
Binary file modified tests/snapshots/flex/test_trx_send_wrong_path/00005.png
Binary file modified tests/snapshots/flex/test_trx_sign_hash/00000.png
Binary file modified tests/snapshots/flex/test_trx_sign_hash/00001.png
Binary file modified tests/snapshots/flex/test_trx_sign_hash/00002.png
Binary file modified tests/snapshots/flex/test_trx_sign_hash/00003.png
Binary file modified tests/snapshots/flex/test_trx_sign_hash/00004.png
Binary file modified tests/snapshots/flex/test_trx_sign_message/00000.png
Binary file modified tests/snapshots/flex/test_trx_sign_message/00001.png
Binary file modified tests/snapshots/flex/test_trx_sign_message/00002.png
Binary file modified tests/snapshots/flex/test_trx_sign_message/00003.png
Binary file modified tests/snapshots/flex/test_trx_sign_message/00004.png
Binary file modified tests/snapshots/flex/test_trx_sign_tip712/00000.png
Binary file modified tests/snapshots/flex/test_trx_sign_tip712/00001.png
Binary file modified tests/snapshots/flex/test_trx_sign_tip712/00002.png
Binary file modified tests/snapshots/flex/test_trx_sign_tip712/00003.png
Binary file modified tests/snapshots/flex/test_trx_sign_tip712/00004.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00000.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00001.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00002.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00003.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00004.png
Binary file modified tests/snapshots/flex/test_trx_trc20_approve/00005.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00000.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00001.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00002.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00003.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00004.png
Binary file modified tests/snapshots/flex/test_trx_trc20_send/00005.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00000.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00001.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00002.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00003.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00004.png
Binary file modified tests/snapshots/flex/test_trx_undelegate_resource/00005.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00000.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00001.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00002.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00003.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00004.png
Binary file modified tests/snapshots/flex/test_trx_unfreezeV2_balance/00005.png
Binary file modified tests/snapshots/flex/test_trx_unfreeze_balance_bw/00000.png
Binary file modified tests/snapshots/flex/test_trx_unfreeze_balance_bw/00001.png
Binary file modified tests/snapshots/flex/test_trx_unfreeze_balance_bw/00002.png
Binary file modified tests/snapshots/flex/test_trx_unfreeze_balance_bw/00003.png
Binary file modified tests/snapshots/flex/test_trx_unfreeze_balance_bw/00004.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part1/00000.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part1/00001.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00000.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00001.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00002.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00003.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00004.png
Binary file modified tests/snapshots/flex/test_trx_unknown_trc20_send/part2/00005.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00000.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00001.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00002.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00003.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00004.png
Binary file modified tests/snapshots/flex/test_trx_vote_witness/00005.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_balance/00000.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_balance/00001.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_balance/00002.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_balance/00003.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_balance/00004.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_unfreeze/00000.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_unfreeze/00001.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_unfreeze/00002.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_unfreeze/00003.png
Binary file modified tests/snapshots/flex/test_trx_withdraw_unfreeze/00004.png
Binary file modified tests/snapshots/stax/test_trx_account_update/00002.png
Binary file modified tests/snapshots/stax/test_trx_account_update/00003.png
Binary file modified tests/snapshots/stax/test_trx_custom_contract/part2/00002.png
Binary file modified tests/snapshots/stax/test_trx_custom_contract/part2/00003.png
Binary file modified tests/snapshots/stax/test_trx_delegate_resource/00003.png
Binary file modified tests/snapshots/stax/test_trx_delegate_resource/00004.png
Binary file modified tests/snapshots/stax/test_trx_ecdh_key/00002.png
Binary file modified tests/snapshots/stax/test_trx_ecdh_key/00003.png
Binary file modified tests/snapshots/stax/test_trx_exchange_create/00002.png
Binary file modified tests/snapshots/stax/test_trx_exchange_create/00003.png
Binary file modified tests/snapshots/stax/test_trx_exchange_inject/00002.png
Binary file modified tests/snapshots/stax/test_trx_exchange_inject/00003.png
Binary file modified tests/snapshots/stax/test_trx_exchange_transaction/00002.png
Binary file modified tests/snapshots/stax/test_trx_exchange_transaction/00003.png
Binary file modified tests/snapshots/stax/test_trx_exchange_withdraw/00002.png
Binary file modified tests/snapshots/stax/test_trx_exchange_withdraw/00003.png
Binary file modified tests/snapshots/stax/test_trx_freezeV2_balance/00002.png
Binary file modified tests/snapshots/stax/test_trx_freezeV2_balance/00003.png
Binary file modified tests/snapshots/stax/test_trx_freeze_balance_bw/00002.png
Binary file modified tests/snapshots/stax/test_trx_freeze_balance_bw/00003.png
Binary file modified tests/snapshots/stax/test_trx_freeze_balance_energy/00002.png
Binary file modified tests/snapshots/stax/test_trx_freeze_balance_energy/00003.png
Binary file modified tests/snapshots/stax/test_trx_proposal_approve/00002.png
Binary file modified tests/snapshots/stax/test_trx_proposal_approve/00003.png
Binary file modified tests/snapshots/stax/test_trx_proposal_create/00002.png
Binary file modified tests/snapshots/stax/test_trx_proposal_create/00003.png
Binary file modified tests/snapshots/stax/test_trx_proposal_delete/00002.png
Binary file modified tests/snapshots/stax/test_trx_proposal_delete/00003.png
Binary file modified tests/snapshots/stax/test_trx_send/00002.png
Binary file modified tests/snapshots/stax/test_trx_send/00003.png
Binary file modified tests/snapshots/stax/test_trx_send_asset_with_name/00002.png
Binary file modified tests/snapshots/stax/test_trx_send_asset_with_name/00003.png
Binary file modified tests/snapshots/stax/test_trx_send_asset_without_name/00002.png
Binary file modified tests/snapshots/stax/test_trx_send_asset_without_name/00003.png
Binary file modified tests/snapshots/stax/test_trx_send_permissioned/00002.png
Binary file modified tests/snapshots/stax/test_trx_send_permissioned/00003.png
Binary file modified tests/snapshots/stax/test_trx_send_wrong_path/00002.png
Binary file modified tests/snapshots/stax/test_trx_send_wrong_path/00003.png
Binary file modified tests/snapshots/stax/test_trx_sign_hash/00002.png
Binary file modified tests/snapshots/stax/test_trx_sign_hash/00003.png
Binary file modified tests/snapshots/stax/test_trx_sign_message/00002.png
Binary file modified tests/snapshots/stax/test_trx_sign_message/00003.png
Binary file modified tests/snapshots/stax/test_trx_sign_tip712/00002.png
Binary file modified tests/snapshots/stax/test_trx_sign_tip712/00003.png
Binary file modified tests/snapshots/stax/test_trx_trc20_approve/00002.png
Binary file modified tests/snapshots/stax/test_trx_trc20_approve/00003.png
Binary file modified tests/snapshots/stax/test_trx_trc20_send/00002.png
Binary file modified tests/snapshots/stax/test_trx_trc20_send/00003.png
Binary file modified tests/snapshots/stax/test_trx_undelegate_resource/00002.png
Binary file modified tests/snapshots/stax/test_trx_undelegate_resource/00003.png
Binary file modified tests/snapshots/stax/test_trx_unfreezeV2_balance/00002.png
Binary file modified tests/snapshots/stax/test_trx_unfreezeV2_balance/00003.png
Binary file modified tests/snapshots/stax/test_trx_unfreeze_balance_bw/00002.png
Binary file modified tests/snapshots/stax/test_trx_unfreeze_balance_bw/00003.png
Binary file modified tests/snapshots/stax/test_trx_unknown_trc20_send/part2/00002.png
Binary file modified tests/snapshots/stax/test_trx_unknown_trc20_send/part2/00003.png
Binary file modified tests/snapshots/stax/test_trx_vote_witness/00003.png
Binary file modified tests/snapshots/stax/test_trx_vote_witness/00004.png
Binary file modified tests/snapshots/stax/test_trx_withdraw_balance/00002.png
Binary file modified tests/snapshots/stax/test_trx_withdraw_balance/00003.png
Binary file modified tests/snapshots/stax/test_trx_withdraw_unfreeze/00002.png
Binary file modified tests/snapshots/stax/test_trx_withdraw_unfreeze/00003.png
29 changes: 20 additions & 9 deletions tests/test_trx.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ def sign_and_validate(self,
assert check_tx_signature(tx, resp.data[0:65],
client.getAccount(0)['publicKey'][2:])

def trc20_calldata_transfer_hex(self, to_hex: str, amount: int) -> bytes:
selector = "a9059cbb"
amount_hex = hex(amount)[2:]
return bytes.fromhex(selector + to_hex.rjust(64, "0") +
amount_hex.rjust(64, "0"))

def trc20_calldata_approve_hex(self, spender_hex: str,
amount: int) -> bytes:
selector = "095ea7b3"
amount_hex = hex(amount)[2:]
return bytes.fromhex(selector + spender_hex.rjust(64, "0") +
amount_hex.rjust(64, "0"))

def test_trx_get_version(self, backend, firmware, navigator):
client = TronClient(backend, firmware, navigator)
resp = client.getVersion()
Expand Down Expand Up @@ -443,9 +456,8 @@ def test_trx_trc20_send(self, backend, firmware, navigator):
client.getAccount(0)['addressHex']),
contract_address=bytes.fromhex(
client.address_hex("TBoTZcARzWVgnNuB9SyE3S5g1RwsXoQL16")),
data=bytes.fromhex(
"a9059cbb000000000000000000000000364b03e0815687edaf90b81ff58e496dea7383d700000000000000000000000000000000000000000000000000000000000f4240"
)))
data=self.trc20_calldata_transfer_hex(
"364b03e0815687edaf90b81ff58e496dea7383d7", 1000000)))
self.sign_and_validate(client, firmware, 0, tx)

def test_trx_trc20_approve(self, backend, firmware, navigator):
Expand All @@ -457,9 +469,8 @@ def test_trx_trc20_approve(self, backend, firmware, navigator):
client.getAccount(0)['addressHex']),
contract_address=bytes.fromhex(
client.address_hex("TBoTZcARzWVgnNuB9SyE3S5g1RwsXoQL16")),
data=bytes.fromhex(
"095ea7b3000000000000000000000000364b03e0815687edaf90b81ff58e496dea7383d700000000000000000000000000000000000000000000000000000000000f4240"
)))
data=self.trc20_calldata_approve_hex(
"364b03e0815687edaf90b81ff58e496dea7383d7", 1000000)))
self.sign_and_validate(client, firmware, 0, tx)

def test_trx_sign_message(self, backend, firmware, navigator):
Expand Down Expand Up @@ -596,9 +607,9 @@ def test_trx_unknown_trc20_send(self, backend, firmware, navigator):
client.getAccount(0)['addressHex']),
contract_address=bytes.fromhex(
client.address_hex("TVGLX58e3uBx1fmmwLCENkrgKqmpEjhtfG")),
data=bytes.fromhex(
"a9059cbb000000000000000000000000364b03e0815687edaf90b81ff58e496dea7383d700000000000000000000000000000000000000000000000000000000000f4240"
)))
data=self.trc20_calldata_transfer_hex(
"364b03e0815687edaf90b81ff58e496dea7383d7", 1000000)))

self.sign_and_validate(client, firmware, 0, tx, warning_approve=True)

def test_trx_freezeV2_balance(self, backend, firmware, navigator):
Expand Down
Loading