From 8e42e770a4ba430323675c0c211c032a6b68674c Mon Sep 17 00:00:00 2001 From: roadsideromeo <138470562+sunnyplayzap@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:28:33 +0000 Subject: [PATCH] Fix: Wrong variable used in storeTokenTransfer and incorrect ton library import --- sources/1_Transfer.ts | 4 ++-- sources/2_TransferURL.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/1_Transfer.ts b/sources/1_Transfer.ts index 068e87a..773a980 100644 --- a/sources/1_Transfer.ts +++ b/sources/1_Transfer.ts @@ -1,4 +1,4 @@ -import { Address, beginCell, contractAddress, toNano, TonClient4, internal, fromNano, WalletContractV4 } from "ton"; +import { Address, beginCell, contractAddress, toNano, TonClient4, internal, fromNano, WalletContractV4 } from "@ton/ton"; import { deploy } from "./utils/deploy"; import { printAddress, printDeploy, printHeader, printSeparator } from "./utils/print"; import { buildOnchainMetadata } from "./utils/jetton-helpers"; @@ -68,7 +68,7 @@ let NewOnwer_Address = Address.parse(""); // 🔴 Owner should usually be the de $$type: "TokenTransfer", query_id: 0n, amount: toNano(20000), - destination: NewOnwer_Address, + sender: NewOnwer_Address, response_destination: wallet_contract.address, // Original Owner, aka. First Minter's Jetton Wallet custom_payload: forward_string_test, forward_ton_amount: toNano("0.000000001"), diff --git a/sources/2_TransferURL.ts b/sources/2_TransferURL.ts index 236fc1a..9e6e602 100644 --- a/sources/2_TransferURL.ts +++ b/sources/2_TransferURL.ts @@ -1,4 +1,4 @@ -import { Address, beginCell, contractAddress, toNano, Cell, TonClient4 } from "ton"; +import { Address, beginCell, contractAddress, toNano, Cell, TonClient4 } from "@ton/ton"; import { ContractSystem, testAddress } from "ton-emulator"; import { buildOnchainMetadata } from "./utils/jetton-helpers"; import { printAddress, printHeader, printDeploy, printSeparator } from "./utils/print"; @@ -39,7 +39,7 @@ let new_owner_Address = Address.parse(""); $$type: "TokenTransfer", query_id: 0n, amount: toNano(1), - destination: new_owner_jetton_wallet.address, + sender: new_owner_jetton_wallet.address, response_destination: caller_wallet_address, // Original Owner, aka. First Minter's Jetton Wallet custom_payload: null, forward_ton_amount: toNano("0.000000001"),