Skip to content
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

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

fospring
Copy link
Collaborator

@fospring fospring commented Sep 7, 2023

use env varibles to set rpc url
#123

} else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) {
rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL;
}
console.log();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log();

Copy link
Collaborator Author

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}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Collaborator Author

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

@ailisp
Copy link
Member

ailisp commented Sep 11, 2023

CI fails need to be fixed. I recently tried main branch can pass: #218

Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice enhancement!

@ailisp ailisp merged commit dada180 into near:main Sep 11, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants