From f8e45d8839e9972847a702d79aacbed008da7d41 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Mon, 27 Jan 2025 19:34:04 +0100 Subject: [PATCH] chore(docs): format rust code in sponsored tx code (#5044) --- .../about-sponsored-transactions.mdx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/content/developer/iota-101/transactions/sponsored-transactions/about-sponsored-transactions.mdx b/docs/content/developer/iota-101/transactions/sponsored-transactions/about-sponsored-transactions.mdx index 1464e969569..e070e4a86ff 100644 --- a/docs/content/developer/iota-101/transactions/sponsored-transactions/about-sponsored-transactions.mdx +++ b/docs/content/developer/iota-101/transactions/sponsored-transactions/about-sponsored-transactions.mdx @@ -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, -/// 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, + pub intent_message: IntentMessage, + /// 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, } 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, -pub owner: IOTAAddress, -pub price: u64, -pub budget: u64, + pub payment: Vec, + pub owner: IOTAAddress, + pub price: u64, + pub budget: u64, } ```