diff --git a/blank_project/src/config.js b/blank_project/src/config.js index bfa0527d..5b46d4a9 100644 --- a/blank_project/src/config.js +++ b/blank_project/src/config.js @@ -8,7 +8,7 @@ case 'development': return { networkId: 'default', - nodeUrl: 'http://34.94.33.164:3030', + nodeUrl: 'https://rpc.nearprotocol.com', contractName: CONTRACT_NAME, walletUrl: 'https://wallet.nearprotocol.com', }; diff --git a/index.js b/index.js index 5ce24deb..ac2230a3 100755 --- a/index.js +++ b/index.js @@ -6,7 +6,8 @@ const yargs = require('yargs'); const bs58 = require('bs58'); const ncp = require('ncp').ncp; const rimraf = require('rimraf'); -const readline = require('readline') +const readline = require('readline'); +const URL = require('url').URL; ncp.limit = 16; @@ -124,7 +125,7 @@ exports.login = async function(options) { newUrl.searchParams.set('title', title); const keyPair = await KeyPair.fromRandom('ed25519'); newUrl.searchParams.set('public_key', keyPair.getPublicKey()); - console.log(`Please navigate to this url and follow the insturctions to log in: ${newUrl.toString()}`); + console.log(`Please navigate to this url and follow the instructions to log in: \n${newUrl.toString()}`); const rl = readline.createInterface({ input: process.stdin, @@ -135,6 +136,7 @@ exports.login = async function(options) { const keyStore = new UnencryptedFileSystemKeyStore('./neardev'); keyStore.setKey(options.networkId, accountId, keyPair); console.log(`Logged in with ${accountId}`); + rl.close(); }); } }