From 2b7f4e92c2bcaca41b4599a2d0801a62410ee332 Mon Sep 17 00:00:00 2001 From: akorchyn Date: Fri, 19 Jul 2024 18:16:26 +0300 Subject: [PATCH] send_ft fix --- src/tokens.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tokens.rs b/src/tokens.rs index b4361b8..73c5545 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -142,13 +142,14 @@ impl Tokens { pub fn send_ft( self, ft_contract: AccountId, + receiver_id: AccountId, amount: u128, ) -> anyhow::Result { Ok(Contract(ft_contract) .call_function( "ft_transfer", json!({ - "receiver_id": self.account_id.to_string(), + "receiver_id": receiver_id, "amount": amount }), )?