Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
send_ft fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Jul 19, 2024
1 parent 90362ae commit 2b7f4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ impl Tokens {
pub fn send_ft(
self,
ft_contract: AccountId,
receiver_id: AccountId,
amount: u128,
) -> anyhow::Result<ConstructTransaction> {
Ok(Contract(ft_contract)
.call_function(
"ft_transfer",
json!({
"receiver_id": self.account_id.to_string(),
"receiver_id": receiver_id,
"amount": amount
}),
)?
Expand Down

0 comments on commit 2b7f4e9

Please sign in to comment.