Skip to content

Commit

Permalink
order matters ;-;
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Nov 1, 2023
1 parent 4edd75e commit e443f9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bindings/python/iota_sdk/types/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ class Transaction:
inputs: The inputs to consume in order to fund the outputs of the Transaction Payload.
allotments: The allotments of Mana which which will be added upon commitment of the slot.
capabilities: The capability bitflags of the transaction.
payload: An optional tagged data payload
outputs: The outputs that are created by the Transaction Payload
payload: An optional tagged data payload
"""
network_id: str
creation_slot: SlotIndex
context_inputs: List[ContextInput]
inputs: List[UtxoInput]
allotments: List[ManaAllotment]
capabilities: HexStr = field(default='0x', init=False)
payload: Optional[Payload] = None
outputs: List[Output]
payload: Optional[Payload] = None

def with_capabilities(self, capabilities: bytes):
"""Sets the transaction capabilities from a byte array.
Expand Down
8 changes: 4 additions & 4 deletions bindings/python/iota_sdk/types/transaction_with_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@ class TransactionWithMetadata:
Attributes:
payload: The transaction payload.
block_id: The ID of the block that holds the transaction.
inclusion_state: The inclusion state of the transaction.
timestamp: The timestamp of the transaction.
transaction_id: The ID of the corresponding transaction.
network_id: The ID of the network this transaction was issued in.
incoming: Indicates whether the transaction was created by the wallet or whether it was sent by someone else and is incoming.
note: A note attached to the transaction.
inputs: The inputs of the transaction.
note: A note attached to the transaction.
block_id: The ID of the block that holds the transaction.
"""
payload: SignedTransactionPayload
block_id: Optional[HexStr] = None
inclusion_state: InclusionState
timestamp: int
transaction_id: HexStr
network_id: int
incoming: bool
note: Optional[str] = None
inputs = List[OutputWithMetadata]
note: Optional[str] = None
block_id: Optional[HexStr] = None

0 comments on commit e443f9d

Please sign in to comment.