four-flap-meme-sdk 1.2.44 → 1.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -353,7 +353,7 @@ function buildTransactionRequest(unsigned, { from, nonce, gasLimit, gasPrice, pr
353
353
  return tx;
354
354
  }
355
355
  async function buildProfitTransaction({ seller, profitAmount, profitNonce, gasPrice, chainId, txType }) {
356
- if (!profitNonce || profitAmount === 0n) {
356
+ if (profitNonce === undefined || profitAmount === 0n) {
357
357
  return null;
358
358
  }
359
359
  return await seller.signTransaction({
@@ -354,7 +354,7 @@ async function planNonces({ buyer, seller, sameAddress, approvalExists, extractP
354
354
  return { buyerNonce, sellerNonce };
355
355
  }
356
356
  async function buildProfitTransaction({ seller, profitAmount, profitNonce, gasPrice, chainId, txType }) {
357
- if (!profitNonce || profitAmount === 0n) {
357
+ if (profitNonce === undefined || profitAmount === 0n) {
358
358
  return null;
359
359
  }
360
360
  return await seller.signTransaction({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "four-flap-meme-sdk",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "description": "SDK for Flap bonding curve and four.meme TokenManager",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",