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