mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-19 13:44:55 +01:00
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:
@@ -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();
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user