diff --git a/packages/sdk/README.md b/packages/sdk/README.md index e25dee5..34e04ae 100644 --- a/packages/sdk/README.md +++ b/packages/sdk/README.md @@ -101,8 +101,8 @@ await client.executeSwapQuote({ // if approving an ERC20, you have access to the approval receipt const { txReceipt } = progress; } - if (progress.step === "deposit" && progress.status === "txSuccess") { - // once deposit is successful you have access to depositId and the receipt + if (progress.step === "swap" && progress.status === "txSuccess") { + // once swap is successful you have access to depositId and the receipt const { depositId, txReceipt } = progress; } if (progress.step === "fill" && progress.status === "txSuccess") { diff --git a/packages/sdk/src/client.ts b/packages/sdk/src/client.ts index 1257799..c7dcf7f 100644 --- a/packages/sdk/src/client.ts +++ b/packages/sdk/src/client.ts @@ -396,10 +396,12 @@ export class AcrossClient { * @example * ```ts * const quote = await client.getSwapQuote({ - * originChainId: 1, - * destinationChainId: 10, - * inputToken: "0x...", - * outputToken: "0x...", + * route: { + * originChainId: 1, + * destinationChainId: 10, + * inputToken: "0x...", + * outputToken: "0x...", + * }, * amount: "10", * depositor: "0x...", * });