Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Add require for url so that near login works on older node versions +…
Browse files Browse the repository at this point in the history
… fix typo
  • Loading branch information
janedegtiareva committed Jul 17, 2019
1 parent 9eabe80 commit e4ed428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -116,6 +117,7 @@ exports.stake = async function(options) {
}

exports.login = async function(options) {
console.log(options);
if (!options.walletUrl) {
console.log("Log in is not needed on this environment. Please use appropriate master account for shell operations.")
} else {
Expand Down

0 comments on commit e4ed428

Please sign in to comment.