Skip to content

Commit

Permalink
Merge pull request #49 from leapwallet/fix/snap-connect-fn
Browse files Browse the repository at this point in the history
return provider from connect function
  • Loading branch information
barun1313 authored Sep 8, 2023
2 parents 9b98341 + e5416c1 commit 402efe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cosmos-snap-provider/src/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const connectSnap = async (
params: Record<'version' | string, unknown> = {},
) => {
const provider = await getProvider();
await provider.request({
return provider.request({
method: 'wallet_requestSnaps',
params: {
[snapId]: params,
Expand Down

0 comments on commit 402efe5

Please sign in to comment.