@thesingularitynetwork/darkswap-sdk 0.2.7-beta2 → 0.2.7-beta3

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.
@@ -13213,15 +13213,15 @@ var BridgeCreateOrderService = /*#__PURE__*/function () {
13213
13213
  return _regenerator().w(function (_context0) {
13214
13214
  while (1) switch (_context0.n) {
13215
13215
  case 0:
13216
- if (!(!context || !context.orderNote || !context.address || !context.signature || !context.proof)) {
13216
+ if (!(!context || !context.address || !context.signature || !context.proof || !context.sourceAsset || context.sourceAmount === undefined)) {
13217
13217
  _context0.n = 1;
13218
13218
  break;
13219
13219
  }
13220
13220
  throw new DarkSwapError('Invalid context');
13221
13221
  case 1:
13222
13222
  signer = this._darkSwapOfSourceChain.signer;
13223
- asset = context.orderNote.asset;
13224
- amount = context.orderNote.amount;
13223
+ asset = context.sourceAsset;
13224
+ amount = context.sourceAmount;
13225
13225
  allowanceContract = new ethers.ethers.Contract(asset, ERC20Abi.abi, this._darkSwapOfSourceChain);
13226
13226
  _context0.n = 2;
13227
13227
  return allowanceContract.allowance(signer.getAddress(), this._darkSwapOfSourceChain.contracts.synaraDarkSwapOnBridgeAssetManager);