Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Oct 9, 2024
1 parent f140be0 commit 9a252c1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 229 deletions.
9 changes: 5 additions & 4 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"license": "MIT",
"dependencies": {
"@mintbase-js/sdk": "0.6.2",
"@mintbase-js/wallet": "0.6.2",
"@mintbase-js/wallet": "0.6.5",
"@near-wallet-selector/core": "8.9.12",
"@near-wallet-selector/here-wallet": "8.9.12",
"@near-wallet-selector/ledger": "8.9.12",
Expand All @@ -30,7 +30,8 @@
"@near-wallet-selector/wallet-connect": "8.9.12",
"bs58": "^5.0.0",
"js-sha256": "^0.9.0",
"rxjs": "^7.5.7"
"rxjs": "^7.5.7",
"near-api-js": "^4.0.3"
},
"devDependencies": {
"@types/node": "18.11.9",
Expand Down
5 changes: 3 additions & 2 deletions packages/auth/src/account.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import { connectToNear, Account, KeyStore } from '.';
import { mbjs } from '@mintbase-js/sdk';
import { Account, connect as connectToNear } from 'near-api-js';
import { KeyStore } from 'near-api-js/lib/key_stores';

/**
* Connect to a NEAR account `accountId` with credentials in `keyStore` {@link KeyStore}
Expand All @@ -23,7 +24,7 @@ export const connect = async (
keyStore: KeyStore,
network: Network = mbjs.keys.network as Network,
): Promise<Account> => {

const near = await connectToNear({
keyStore,
networkId: network || mbjs.keys.network as Network,
Expand Down
13 changes: 0 additions & 13 deletions packages/auth/src/index.ts

This file was deleted.

208 changes: 0 additions & 208 deletions packages/auth/src/wallet.test.ts

This file was deleted.

0 comments on commit 9a252c1

Please sign in to comment.