Skip to content

Commit

Permalink
Merge pull request #38 from Mintbase/main
Browse files Browse the repository at this point in the history
add bitte wallet support
  • Loading branch information
gagdiez authored Aug 28, 2024
2 parents 344868f + c85dc59 commit 57240ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@near-wallet-selector/meteor-wallet": "^8.9.10",
"@near-wallet-selector/modal-ui": "^8.9.10",
"@near-wallet-selector/my-near-wallet": "^8.9.10",
"@near-wallet-selector/bitte-wallet": "^8.9.10",
"@vitejs/plugin-react": "^4.2.1",
"axios": "^1.6.8",
"bitcoinjs-lib": "^6.1.5",
Expand Down
5 changes: 3 additions & 2 deletions src/services/near-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { setupWalletSelector } from '@near-wallet-selector/core';
import { setupHereWallet } from '@near-wallet-selector/here-wallet';
import { setupMyNearWallet } from '@near-wallet-selector/my-near-wallet';
import { setupMeteorWallet } from '@near-wallet-selector/meteor-wallet';
import { setupBitteWallet } from '@near-wallet-selector/bitte-wallet';

const THIRTY_TGAS = '30000000000000';
const NO_DEPOSIT = '0';
Expand All @@ -31,12 +32,12 @@ export class Wallet {
/**
* To be called when the website loads
* @param {Function} accountChangeHook - a function that is called when the user signs in or out#
* @returns {Promise<string>} - the accountId of the signed-in user
* @returns {Promise<string>} - the accountId of the signed-in user
*/
startUp = async (accountChangeHook) => {
this.selector = setupWalletSelector({
network: {networkId: this.networkId, nodeUrl: 'https://rpc.testnet.pagoda.co'},
modules: [setupMyNearWallet(), setupHereWallet(), setupMeteorWallet()]
modules: [setupMyNearWallet(), setupHereWallet(), setupMeteorWallet(), setupBitteWallet()]
});

const walletSelector = await this.selector;
Expand Down

0 comments on commit 57240ea

Please sign in to comment.