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