You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/models/transactions/account_delete.rs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -68,29 +68,29 @@ impl<'a> AccountDelete<'a> {
68
68
last_ledger_sequence:Option<u32>,
69
69
memos:Option<Vec<Memo>>,
70
70
sequence:Option<u32>,
71
-
signers:Option<Vec<Signer<'a>>>,
71
+
signers:Option<Vec<Signer>>,
72
72
source_tag:Option<u32>,
73
73
ticket_sequence:Option<u32>,
74
74
destination:Cow<'a,str>,
75
75
destination_tag:Option<u32>,
76
76
) -> Self{
77
77
Self{
78
-
common_fields:CommonFields{
78
+
common_fields:CommonFields::new(
79
79
account,
80
-
transaction_type:TransactionType::AccountDelete,
80
+
TransactionType::AccountDelete,
81
81
account_txn_id,
82
82
fee,
83
-
flags:FlagCollection::default(),
83
+
Some(FlagCollection::default()),
84
84
last_ledger_sequence,
85
85
memos,
86
+
None,
86
87
sequence,
87
88
signers,
89
+
None,
88
90
source_tag,
89
91
ticket_sequence,
90
-
network_id:None,
91
-
signing_pub_key:None,
92
-
txn_signature:None,
93
-
},
92
+
None,
93
+
),
94
94
destination,
95
95
destination_tag,
96
96
}
@@ -116,7 +116,7 @@ mod test_serde {
116
116
"rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe".into(),
117
117
Some(13),
118
118
);
119
-
let default_json_str = r#"{"Account":"rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm","TransactionType":"AccountDelete","Fee":"2000000","Flags":0,"Sequence":2470665,"Destination":"rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe","DestinationTag":13}"#;
119
+
let default_json_str = r#"{"Account":"rWYkbWkCeg8dP6rXALnjgZSjjLyih5NXm","TransactionType":"AccountDelete","Fee":"2000000","Flags":0,"Sequence":2470665,"SigningPubKey":"","Destination":"rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe","DestinationTag":13}"#;
120
120
// Serialize
121
121
let default_json_value = serde_json::to_value(default_json_str).unwrap();
122
122
let serialized_string = serde_json::to_string(&default_txn).unwrap();
Copy file name to clipboardExpand all lines: src/models/transactions/account_set.rs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ impl<'a> AccountSet<'a> {
281
281
last_ledger_sequence:Option<u32>,
282
282
memos:Option<Vec<Memo>>,
283
283
sequence:Option<u32>,
284
-
signers:Option<Vec<Signer<'a>>>,
284
+
signers:Option<Vec<Signer>>,
285
285
source_tag:Option<u32>,
286
286
ticket_sequence:Option<u32>,
287
287
clear_flag:Option<AccountSetFlag>,
@@ -294,22 +294,22 @@ impl<'a> AccountSet<'a> {
294
294
nftoken_minter:Option<Cow<'a,str>>,
295
295
) -> Self{
296
296
Self{
297
-
common_fields:CommonFields{
297
+
common_fields:CommonFields::new(
298
298
account,
299
-
transaction_type:TransactionType::AccountSet,
299
+
TransactionType::AccountSet,
300
300
account_txn_id,
301
301
fee,
302
-
flags: flags.unwrap_or_default(),
302
+
Some(flags.unwrap_or_default()),
303
303
last_ledger_sequence,
304
304
memos,
305
+
None,
305
306
sequence,
306
307
signers,
308
+
None,
307
309
source_tag,
308
310
ticket_sequence,
309
-
network_id:None,
310
-
signing_pub_key:None,
311
-
txn_signature:None,
312
-
},
311
+
None,
312
+
),
313
313
clear_flag,
314
314
domain,
315
315
email_hash,
@@ -558,7 +558,7 @@ mod tests {
558
558
None,
559
559
None,
560
560
);
561
-
let default_json_str = r#"{"Account":"rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn","TransactionType":"AccountSet","Fee":"12","Flags":0,"Sequence":5,"Domain":"6578616D706C652E636F6D","MessageKey":"03AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB","SetFlag":5}"#;
561
+
let default_json_str = r#"{"Account":"rf1BiGeXwwQoi8Z2ueFYTEXSwuJYfV2Jpn","TransactionType":"AccountSet","Fee":"12","Flags":0,"Sequence":5,"SigningPubKey":"","Domain":"6578616D706C652E636F6D","MessageKey":"03AB40A0490F9B7ED8DF29D246BF2D6269820A0EE7742ACDD457BEA7C7D0931EDB","SetFlag":5}"#;
562
562
// Serialize
563
563
let default_json_value = serde_json::to_value(default_json_str).unwrap();
564
564
let serialized_string = serde_json::to_string(&default_txn).unwrap();
0 commit comments