Skip to content

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Nov 15, 2019
1 parent f59c866 commit d7ce31b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions commands/tx-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
required: true
}),
handler: exitOnError(async (argv) => {
const near = await connect(argv)
const near = await connect(argv);

const hashParts = argv.hash.split(':');
let hash, accountId;
Expand All @@ -24,10 +24,10 @@ module.exports = {
} else {
throw new Error('Unexpected transaction hash format');
}
accountId = accountId || argv.accountId || argv.masterAccount
accountId = accountId || argv.accountId || argv.masterAccount;

if (!accountId) {
throw new Error('Please specify account id, either as part of transaction hash or using --accountId flag.')
throw new Error('Please specify account id, either as part of transaction hash or using --accountId flag.');
}

const status = await near.connection.provider.txStatus(bs58.decode(hash), accountId);
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const { KeyPair, keyStores } = require('nearlib');
const UnencryptedFileSystemKeyStore = keyStores.UnencryptedFileSystemKeyStore;

const connect = require('./utils/connect');
const inspectResponse = require('./utils/inspect-response')
const inspectResponse = require('./utils/inspect-response');

// TODO: Fix promisified wrappers to handle error properly

Expand Down

0 comments on commit d7ce31b

Please sign in to comment.