Skip to content

Commit

Permalink
bug: fix routing and validation of openSwap
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Dec 17, 2024
1 parent 928f436 commit 3828e89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/messaging/messaging-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ export async function triggerRequestWindowOpen(path: RouteUrls, urlParams: URLSe

export async function triggerSwapWindowOpen(path: To, urlParams: URLSearchParams) {
if (IS_TEST_ENV) return openRequestInFullPage(path, urlParams);
return popup({ url: `/swap.html#${path}?${urlParams.toString()}` });
return popup({ url: `/popup.html#${path}?${urlParams.toString()}` });
}
4 changes: 4 additions & 0 deletions src/background/messaging/rpc-methods/supported-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export function rpcSupportedMethods(message: SupportedMethodsRequest, port: chro
docsUrl:
'https://leather.gitbook.io/developers/bitcoin/sign-transactions/partially-signed-bitcoin-transactions-psbts',
},
{
name: 'openSwap',
docsUrl: 'https://leather.gitbook.io/developers/bitcoin/swaps/open-swap',
},
],
},
})
Expand Down

0 comments on commit 3828e89

Please sign in to comment.