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 (
|
|
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 (
|
|
357
|
+
if (profitNonce === undefined || profitAmount === 0n) {
|
|
358
358
|
return null;
|
|
359
359
|
}
|
|
360
360
|
return await seller.signTransaction({
|