@thesingularitynetwork/darkswap-sdk 0.1.36 → 0.1.37
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.
- package/dist/darkswap-sdk.cjs.development.js +7 -4
- package/dist/darkswap-sdk.cjs.development.js.map +1 -1
- package/dist/darkswap-sdk.cjs.production.min.js +1 -1
- package/dist/darkswap-sdk.cjs.production.min.js.map +1 -1
- package/dist/darkswap-sdk.esm.js +7 -4
- package/dist/darkswap-sdk.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/darkswap-sdk.esm.js
CHANGED
|
@@ -5311,12 +5311,14 @@ function _safeWait() {
|
|
|
5311
5311
|
case 3:
|
|
5312
5312
|
_context.p = 3;
|
|
5313
5313
|
_t = _context.v;
|
|
5314
|
+
console.log("tx.wait error", _t);
|
|
5314
5315
|
err = _t;
|
|
5315
5316
|
msg = (_err$message = err == null ? void 0 : err.message) != null ? _err$message : "";
|
|
5316
5317
|
if (!(msg.includes("value.nonce") || msg.includes("Cannot convert undefined to a BigInt"))) {
|
|
5317
5318
|
_context.n = 5;
|
|
5318
5319
|
break;
|
|
5319
5320
|
}
|
|
5321
|
+
console.log("try getTransactionReceipt");
|
|
5320
5322
|
_context.n = 4;
|
|
5321
5323
|
return waitForReceipt(provider, tx.hash, conf);
|
|
5322
5324
|
case 4:
|
|
@@ -9564,7 +9566,7 @@ var RetailCreateOrderService = /*#__PURE__*/function (_BaseContractService) {
|
|
|
9564
9566
|
}();
|
|
9565
9567
|
_proto.allowance = /*#__PURE__*/function () {
|
|
9566
9568
|
var _allowance = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(context) {
|
|
9567
|
-
var signer, asset, amount, allowanceContract, allowance, isLegacy, contract, tx,
|
|
9569
|
+
var signer, asset, amount, allowanceContract, allowance, isLegacy, contract, tx, reciept;
|
|
9568
9570
|
return _regenerator().w(function (_context4) {
|
|
9569
9571
|
while (1) switch (_context4.n) {
|
|
9570
9572
|
case 0:
|
|
@@ -9593,10 +9595,10 @@ var RetailCreateOrderService = /*#__PURE__*/function (_BaseContractService) {
|
|
|
9593
9595
|
case 3:
|
|
9594
9596
|
tx = _context4.v;
|
|
9595
9597
|
_context4.n = 4;
|
|
9596
|
-
return this._darkSwap.provider
|
|
9598
|
+
return safeWait(tx, this._darkSwap.provider);
|
|
9597
9599
|
case 4:
|
|
9598
|
-
|
|
9599
|
-
if (!(!
|
|
9600
|
+
reciept = _context4.v;
|
|
9601
|
+
if (!(!reciept || reciept.status !== 1)) {
|
|
9600
9602
|
_context4.n = 5;
|
|
9601
9603
|
break;
|
|
9602
9604
|
}
|
|
@@ -9645,6 +9647,7 @@ var RetailCreateOrderService = /*#__PURE__*/function (_BaseContractService) {
|
|
|
9645
9647
|
});
|
|
9646
9648
|
case 5:
|
|
9647
9649
|
tx = _context5.v;
|
|
9650
|
+
console.log("=== before safeWait");
|
|
9648
9651
|
_context5.n = 6;
|
|
9649
9652
|
return safeWait(tx, this._darkSwap.provider);
|
|
9650
9653
|
case 6:
|