From dd291d6754ac0ec2d8c37d041e4a0dc3e4a5b0e3 Mon Sep 17 00:00:00 2001 From: Gidon Katten <55109236+gidonkatten@users.noreply.github.com> Date: Wed, 1 Jan 2025 08:22:48 +0000 Subject: [PATCH] fix unexpected register fee amount (#74) --- .changeset/unlucky-bottles-think.md | 5 +++++ src/algo-liquid-governance/v2/governance.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/unlucky-bottles-think.md diff --git a/.changeset/unlucky-bottles-think.md b/.changeset/unlucky-bottles-think.md new file mode 100644 index 00000000..080e029a --- /dev/null +++ b/.changeset/unlucky-bottles-think.md @@ -0,0 +1,5 @@ +--- +"@folks-finance/algorand-sdk": patch +--- + +fix unexpected register fee amount diff --git a/src/algo-liquid-governance/v2/governance.ts b/src/algo-liquid-governance/v2/governance.ts index 54d3e42b..34e44576 100644 --- a/src/algo-liquid-governance/v2/governance.ts +++ b/src/algo-liquid-governance/v2/governance.ts @@ -420,7 +420,7 @@ function prepareRegisterEscrowOnlineTransactions( const escrowAddr = getDistributorLogicSig(senderAddr).address(); // check register fee is either 0 ALGO or 0.2 ALGO - if (registerFeeAmount !== 0 && registerFeeAmount !== PAYOUTS_GO_ONLINE_FEE) + if (BigInt(registerFeeAmount) !== BigInt(0) && BigInt(registerFeeAmount) !== PAYOUTS_GO_ONLINE_FEE) throw Error("Unexpected register fee amount"); const sendAlgo = {