From be549036f5d6e0a41d1fee3db4239aed63a7e581 Mon Sep 17 00:00:00 2001 From: George Kudrayvtsev Date: Tue, 20 Feb 2024 16:19:42 -0800 Subject: [PATCH] Restore irrelevant change for simpler diff --- cmd/crates/soroban-rpc/src/txn.rs | 40 ++++++++++++++----------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/cmd/crates/soroban-rpc/src/txn.rs b/cmd/crates/soroban-rpc/src/txn.rs index 8352375c..d34f916f 100644 --- a/cmd/crates/soroban-rpc/src/txn.rs +++ b/cmd/crates/soroban-rpc/src/txn.rs @@ -612,27 +612,6 @@ mod tests { } } - fn non_soroban_transaction() -> Transaction { - let source_bytes = Ed25519PublicKey::from_string(SOURCE).unwrap().0; - Transaction { - source_account: MuxedAccount::Ed25519(Uint256(source_bytes)), - fee: 100, - seq_num: SequenceNumber(0), - cond: Preconditions::None, - memo: Memo::None, - operations: vec![Operation { - source_account: None, - body: OperationBody::ChangeTrust(ChangeTrustOp { - line: ChangeTrustAsset::Native, - limit: 0, - }), - }] - .try_into() - .unwrap(), - ext: TransactionExt::V0, - } - } - #[test] fn test_assemble_transaction_updates_tx_data_from_simulation_response() { let sim = simulation_response(); @@ -690,7 +669,24 @@ mod tests { #[test] fn test_assemble_transaction_errors_for_non_invokehostfn_ops() { - let txn = non_soroban_transaction(); + let source_bytes = Ed25519PublicKey::from_string(SOURCE).unwrap().0; + let txn = Transaction { + source_account: MuxedAccount::Ed25519(Uint256(source_bytes)), + fee: 100, + seq_num: SequenceNumber(0), + cond: Preconditions::None, + memo: Memo::None, + operations: vec![Operation { + source_account: None, + body: OperationBody::ChangeTrust(ChangeTrustOp { + line: ChangeTrustAsset::Native, + limit: 0, + }), + }] + .try_into() + .unwrap(), + ext: TransactionExt::V0, + } let result = assemble( &txn,