1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-01 18:30:56 +00:00

stellar: drop protocol_version

This commit is contained in:
matejcik 2018-07-09 14:06:11 +02:00
parent 9dc86f3955
commit 87837bc305
2 changed files with 1 additions and 4 deletions

View File

@ -81,9 +81,7 @@ def parse_transaction_bytes(tx_bytes):
tx - a StellarSignTx describing the transaction header
operations - an array of protobuf message objects for each operation
"""
tx = messages.StellarSignTx(
protocol_version=1
)
tx = messages.StellarSignTx()
unpacker = xdrlib.Unpacker(tx_bytes)
tx.source_account = _xdr_read_address(unpacker)

View File

@ -158,7 +158,6 @@ class TestMsgStellarSignTransaction(TrezorTest):
def _create_msg(self) -> proto.StellarSignTx:
tx = proto.StellarSignTx()
tx.protocol_version = 1
tx.source_account = 'GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW'
tx.fee = 100
tx.sequence_number = 0x100000000