@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.
- package/dist/index.js +2 -0
- 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,
|