Skip to content

Commit 198b008

Browse files
committed
fix: remove duplicate get_test_signed_transaction_with_chain_id fn
1 parent 5d5526a commit 198b008

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

types/src/test_helpers/transaction_test_helpers.rs

-28
Original file line numberDiff line numberDiff line change
@@ -165,34 +165,6 @@ pub fn get_test_signed_txn(
165165
)
166166
}
167167

168-
pub fn get_test_signed_transaction_with_chain_id(
169-
sender: AccountAddress,
170-
sequence_number: u64,
171-
private_key: &Ed25519PrivateKey,
172-
public_key: Ed25519PublicKey,
173-
payload: Option<TransactionPayload>,
174-
expiration_timestamp_secs: u64,
175-
gas_unit_price: u64,
176-
max_gas_amount: Option<u64>,
177-
chain_id: ChainId
178-
) -> SignedTransaction {
179-
let raw_txn = RawTransaction::new(
180-
sender,
181-
sequence_number,
182-
payload.unwrap_or_else(|| {
183-
TransactionPayload::Script(Script::new(EMPTY_SCRIPT.to_vec(), vec![], vec![]))
184-
}),
185-
max_gas_amount.unwrap_or(MAX_GAS_AMOUNT),
186-
gas_unit_price,
187-
expiration_timestamp_secs,
188-
chain_id,
189-
);
190-
191-
let signature = private_key.sign(&raw_txn).unwrap();
192-
193-
SignedTransaction::new(raw_txn, public_key, signature)
194-
}
195-
196168
pub fn get_test_unchecked_txn(
197169
sender: AccountAddress,
198170
sequence_number: u64,

0 commit comments

Comments
 (0)