Skip to content

Commit

Permalink
chore(docs): format rust code in sponsored tx code (#5044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron authored Jan 27, 2025
1 parent 5e4eed5 commit f8e45d8
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ A transaction in IOTA has a specific data structure, which can be represented as

```rust
pub struct SenderSignedTransaction {
pub intent_message: IntentMessage<TransactionData>,
/// A list of signatures signed by all transaction participants.
/// 1. Non-participant signatures must not be present.
/// 2. Signature order does not matter.
pub tx_signatures: Vec<GenericSignature>,
pub intent_message: IntentMessage<TransactionData>,
/// A list of signatures signed by all transaction participants.
/// 1. Non-participant signatures must not be present.
/// 2. Signature order does not matter.
pub tx_signatures: Vec<GenericSignature>,
}

pub struct TransactionDataV1 { // <-- A variant of `TransactionData`
pub kind: TransactionKind, // <-- This contains the transaction details
pub sender: IOTAAddress,
pub gas_data: GasData,
pub expiration: TransactionExpiration,
pub kind: TransactionKind, // <-- This contains the transaction details
pub sender: IOTAAddress,
pub gas_data: GasData,
pub expiration: TransactionExpiration,
}

pub struct GasData {
pub payment: Vec<ObjectRef>,
pub owner: IOTAAddress,
pub price: u64,
pub budget: u64,
pub payment: Vec<ObjectRef>,
pub owner: IOTAAddress,
pub price: u64,
pub budget: u64,
}
```

Expand Down

0 comments on commit f8e45d8

Please sign in to comment.