-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat-issue-123: add rpc url env to replace default rpc url #217
Conversation
packages/js/src/utils.ts
Outdated
} else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { | ||
rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; | ||
} | ||
console.log(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -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}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the incorrect near api js version cached on my mechine, so I add a new param to run test on my local mechine, I will changed it
CI fails need to be fixed. I recently tried main branch can pass: #218 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice enhancement!
use env varibles to set rpc url
#123