From 3c53957ef0c86ffa487d995142d5a4499bb33acc Mon Sep 17 00:00:00 2001 From: Egor Komarov Date: Wed, 21 Aug 2024 13:26:42 +0200 Subject: [PATCH] fix: `estimate_min_attached_amount` payload fix --- .../native/src/nekoton_wrapper/core/token_wallet/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nekoton_bridge/native/src/nekoton_wrapper/core/token_wallet/mod.rs b/packages/nekoton_bridge/native/src/nekoton_wrapper/core/token_wallet/mod.rs index a1218a23..310be098 100644 --- a/packages/nekoton_bridge/native/src/nekoton_wrapper/core/token_wallet/mod.rs +++ b/packages/nekoton_bridge/native/src/nekoton_wrapper/core/token_wallet/mod.rs @@ -6,7 +6,6 @@ use std::sync::Arc; pub mod token_wallet_api; use crate::clock; -use crate::nekoton_wrapper::helpers::parse_slice; use crate::nekoton_wrapper::{parse_address, HandleError}; use async_trait::async_trait; use flutter_rust_bridge::RustOpaque; @@ -167,7 +166,9 @@ impl TokenWalletBoxTrait for TokenWalletBox { let destination = TransferRecipient::OwnerWallet(destination); let tokens = BigUint::from_str(&amount).handle_error()?; let payload = match payload { - Some(payload) => parse_slice(payload)?.into_cell(), + Some(payload) => create_boc_or_comment_payload(&payload) + .handle_error()? + .into_cell(), None => ton_types::Cell::default(), };