mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-12 23:52:39 +00:00
stellar: drop protocol_version
This commit is contained in:
parent
9dc86f3955
commit
87837bc305
@ -81,9 +81,7 @@ def parse_transaction_bytes(tx_bytes):
|
|||||||
tx - a StellarSignTx describing the transaction header
|
tx - a StellarSignTx describing the transaction header
|
||||||
operations - an array of protobuf message objects for each operation
|
operations - an array of protobuf message objects for each operation
|
||||||
"""
|
"""
|
||||||
tx = messages.StellarSignTx(
|
tx = messages.StellarSignTx()
|
||||||
protocol_version=1
|
|
||||||
)
|
|
||||||
unpacker = xdrlib.Unpacker(tx_bytes)
|
unpacker = xdrlib.Unpacker(tx_bytes)
|
||||||
|
|
||||||
tx.source_account = _xdr_read_address(unpacker)
|
tx.source_account = _xdr_read_address(unpacker)
|
||||||
|
@ -158,7 +158,6 @@ class TestMsgStellarSignTransaction(TrezorTest):
|
|||||||
|
|
||||||
def _create_msg(self) -> proto.StellarSignTx:
|
def _create_msg(self) -> proto.StellarSignTx:
|
||||||
tx = proto.StellarSignTx()
|
tx = proto.StellarSignTx()
|
||||||
tx.protocol_version = 1
|
|
||||||
tx.source_account = 'GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW'
|
tx.source_account = 'GAK5MSF74TJW6GLM7NLTL76YZJKM2S4CGP3UH4REJHPHZ4YBZW2GSBPW'
|
||||||
tx.fee = 100
|
tx.fee = 100
|
||||||
tx.sequence_number = 0x100000000
|
tx.sequence_number = 0x100000000
|
||||||
|
Loading…
Reference in New Issue
Block a user