From b915ee945c01cef903c9afdc6dbe90e2c22aaafe Mon Sep 17 00:00:00 2001 From: Raja Ilayaperumal Date: Sun, 10 Nov 2024 15:23:58 +0530 Subject: [PATCH] fix: STX transfer is failed. --- services/contract.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/contract.js b/services/contract.js index 65d0a265..cb3a91c9 100644 --- a/services/contract.js +++ b/services/contract.js @@ -13,7 +13,7 @@ export async function deployContract(pollObject, contractName, callbackFunction) // Add an optional post condition // See below for details on constructing post conditions const postConditionAddress = Constants.STACKS_MAINNET_FLAG ? Constants.MAINNET_DONATION_ADDRESS : Constants.TESTNET_DONATION_ADDRESS; - const postConditionCode = FungibleConditionCode.GreaterEqual; + const postConditionCode = FungibleConditionCode.Equal; const postConditionAmount = 5000000n; const postConditions = [ makeStandardSTXPostCondition(postConditionAddress, postConditionCode, postConditionAmount), @@ -24,7 +24,7 @@ export async function deployContract(pollObject, contractName, callbackFunction) contractName: contractName, codeBody: contract, network: getNetworkType(), - anchorMode: AnchorMode.Any, + // anchorMode: AnchorMode.Any, appDetails: { name: "Ballot", icon: window.location.origin + "/images/logo/ballot.png"