@thesingularitynetwork/darkswap-sdk 0.1.39 → 0.1.41

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.
@@ -9494,7 +9494,7 @@ var RetailCreateOrderService = /*#__PURE__*/function (_BaseContractService) {
9494
9494
  case 4:
9495
9495
  tx = _context4.v;
9496
9496
  _context4.n = 5;
9497
- return tx.wait();
9497
+ return tx.wait(getConfirmations(this._darkSwap.chainId));
9498
9498
  case 5:
9499
9499
  return _context4.a(2);
9500
9500
  }
@@ -10132,6 +10132,7 @@ function serializeDarkSwapMessage(swapMessage) {
10132
10132
  return JSON.stringify({
10133
10133
  address: swapMessage.address,
10134
10134
  orderNote: {
10135
+ address: swapMessage.orderNote.address,
10135
10136
  rho: swapMessage.orderNote.rho.toString(),
10136
10137
  amount: swapMessage.orderNote.amount.toString(),
10137
10138
  asset: swapMessage.orderNote.asset,
@@ -10140,6 +10141,7 @@ function serializeDarkSwapMessage(swapMessage) {
10140
10141
  },
10141
10142
  orderNullifier: swapMessage.orderNullifier,
10142
10143
  inNote: {
10144
+ address: swapMessage.inNote.address,
10143
10145
  rho: swapMessage.inNote.rho.toString(),
10144
10146
  amount: swapMessage.inNote.amount.toString(),
10145
10147
  asset: swapMessage.inNote.asset,
@@ -10158,7 +10160,7 @@ function deserializeDarkSwapMessage(serializedMessage) {
10158
10160
  return {
10159
10161
  address: message.address,
10160
10162
  orderNote: {
10161
- address: message.orderNote.address,
10163
+ address: message.orderNote.address || message.address,
10162
10164
  rho: BigInt(message.orderNote.rho),
10163
10165
  amount: BigInt(message.orderNote.amount),
10164
10166
  asset: message.orderNote.asset,
@@ -10167,7 +10169,7 @@ function deserializeDarkSwapMessage(serializedMessage) {
10167
10169
  },
10168
10170
  feeAmount: BigInt(message.feeAmount),
10169
10171
  inNote: {
10170
- address: message.inNote.address,
10172
+ address: message.inNote.address || message.address,
10171
10173
  rho: BigInt(message.inNote.rho),
10172
10174
  amount: BigInt(message.inNote.amount),
10173
10175
  asset: message.inNote.asset,