@riftresearch/sdk 0.7.1 → 0.8.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -247,8 +247,10 @@ class RiftSdk {
247
247
  await this.assertSufficientBalance(params.from, quote.from.expected, context);
248
248
  }
249
249
  this.logDebug("creating swap", { quoteId: riftQuote.id });
250
+ const senderAddress = params.from.chain.kind === "EVM" ? this.getAddress(context) : undefined;
250
251
  const swapResponse = this.unwrapEdenResult(await this.riftClient.swap.post({
251
252
  id: riftQuote.id,
253
+ ...senderAddress ? { senderAddress } : {},
252
254
  destinationAddress: context.destinationAddress,
253
255
  refundAddress,
254
256
  integratorName: this.integratorName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riftresearch/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "SDK for swapping between bitcoin and evm chains",
5
5
  "license": "MIT",
6
6
  "files": [