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