Skip to content

Commit

Permalink
add contractId on sign in (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus authored Feb 20, 2024
1 parent ea0f906 commit 7826ebf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@testing-library/user-event": "^14.5.2"
},
"dependencies": {
"@mintbase-js/wallet": "0.5.5-fix-success-url-issue-765a756.0",
"@mintbase-js/wallet": "0.5.5-add-contractId-on-signin-84d0c9f.0",
"@near-wallet-selector/core": "8.9.3",
"@near-wallet-selector/here-wallet": "8.9.3",
"@near-wallet-selector/meteor-wallet": "8.9.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const setupMintbaseWalletSelector = async (
callbackUrl: callbackUrl,
successUrl: successUrl || window.location.href,
failureUrl: successUrl || window.location.href,
contractId: contractAddress,
}),
...(options?.additionalWallets || []),
...SUPPORTED_NEAR_WALLETS,
Expand All @@ -97,6 +98,7 @@ export const setupMintbaseWalletSelector = async (
setupMintbaseWallet({
walletUrl: walletUrls[network],
callbackUrl: callbackUrl,
contractId: contractAddress,
}),
...(options?.additionalWallets || []),
],
Expand Down
1 change: 1 addition & 0 deletions packages/wallet/src/mintbase-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export const MintbaseWallet: WalletBehaviourFactory<
methodNames: [],
successUrl: successUrl || href,
failureUrl: failureUrl || href,
contractId: contractId,
});

return getAccounts();
Expand Down

0 comments on commit 7826ebf

Please sign in to comment.