You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this code, it does not return a hash. Additionally, regardless of whether the transaction is successful or fails, it does not enter the catch section. My code is already set up to work without transaction confirmation, but it returns an undefined response. Please help me resolve this issue.
#262
Open
Deepakab56 opened this issue
Sep 20, 2024
· 1 comment
const handlePresaleTonInstance = async () => {
const { evmSoftCap, evmPresaleAmount, evmHardCap, evmMinBuy, evmMaxBuy, evmStartTime, evmEndTime, evmUnsoldToken, evmWhiteList } = evmValue || {}
const get = await presaleContract?.getGetsetfee();
const message = {
$$type: "Presale",
owner: Address.parse(tonWalletAddress),
token: Address.parse("g8gYb57l5584621301D1i_AXZZLNkKcc0Y8emTvas1f8e3f0"),
fee: get,
presaleRate: evmPresaleAmount,
isWhiteListEnabled: evmWhiteList ==
evmWhiteListEnable
? true : false,softcap: evmSoftCap,
hardcap: evmHardCap,
minBuy: evmMinBuy,
maxBuy: evmMaxBuy,
isRefund: evmUnsoldToken ==
evmUnsoldRefund
? true : false,startTime: new Date(evmStartTime).getTime(),
endTime: new Date(evmEndTime).getTime(),
jetton: 1n,
wallet: Address.parse("g8gYb57l5584621301D1i_AXZZLNkKcc0Y8emTvas1f8e3f0"),
};
};
The text was updated successfully, but these errors were encountered: