refactor: update send functionality across wallet components (#925)

* refactor: update send functionality across wallet components

---------
Co-authored-by: thesimplekid <tsk@thesimplekid.com>
This commit is contained in:
David Caseria
2025-07-30 23:37:41 -04:00
committed by GitHub
parent f663a6e41c
commit 6ebcbba0c4
11 changed files with 141 additions and 156 deletions

View File

@@ -70,11 +70,8 @@ async fn test_swap_to_send() {
.expect("Failed to get ys")
)
);
let token = wallet_alice
.send(
prepared_send,
Some(SendMemo::for_token("test_swapt_to_send")),
)
let token = prepared_send
.confirm(Some(SendMemo::for_token("test_swapt_to_send")))
.await
.expect("Failed to send token");
let keysets_info = wallet_alice.get_mint_keysets().await.unwrap();

View File

@@ -64,7 +64,7 @@ async fn test_swap() {
assert_eq!(fee, 1.into());
let send = wallet.send(send, None).await.unwrap();
let send = send.confirm(None).await.unwrap();
let rec_amount = wallet
.receive(&send.to_string(), ReceiveOptions::default())