Skip to content

Commit

Permalink
feat: update version of near-api-js
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringChiu authored and fospring committed Sep 11, 2023
1 parent dada180 commit ea9dc10
Show file tree
Hide file tree
Showing 7 changed files with 187 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ coverage
**/dist/tsconfig.tsbuildinfo
lerna-debug.log
yarn-error.log
.idea
package-lock.json
2 changes: 1 addition & 1 deletion packages/js/dist/account/account-manager.d.ts.map

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

3 changes: 1 addition & 2 deletions packages/js/dist/account/account-manager.js

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

2 changes: 1 addition & 1 deletion packages/js/dist/account/account-manager.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"callsites": "^4.0.0",
"fs-extra": "^10.0.0",
"js-sha256": "^0.9.0",
"near-api-js": "^0.44.1",
"near-api-js": "^v2.1.4",
"near-sandbox": "^0.0.15",
"near-units": "^0.1.9",
"node-port-check": "^2.0.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/js/src/account/account-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export abstract class AccountManager implements NearAccountManager {

try {
const start = Date.now();
// @ts-expect-error access shouldn't be protected
const outcome: FinalExecutionOutcome = await account.signAndSendTransaction({receiverId: tx.receiverId, actions: tx.actions, returnError: true});
const end = Date.now();
if (oldKey) {
Expand Down Expand Up @@ -217,7 +216,7 @@ export abstract class AccountManager implements NearAccountManager {
}

protected get connection(): nearAPI.Connection {
return new nearAPI.Connection(this.networkId, this.provider, this.signer);
return new nearAPI.Connection(this.networkId, this.provider, this.signer, `jsvm.${this.networkId}`);
}
}

Expand Down
196 changes: 180 additions & 16 deletions yarn.lock

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

0 comments on commit ea9dc10

Please sign in to comment.