Browse Source

Fix cli script

gre-patch-1
meriadec 6 years ago
parent
commit
e90f9bca1f
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 2
      scripts/cli/cli.sh
  2. 6
      scripts/cli/txBetweenAccounts.js

2
scripts/cli/cli.sh

@ -6,4 +6,4 @@ export LEDGER_LOGS_DIRECTORY="$LEDGER_DATA_DIR/logs"
export LEDGER_LIVE_SQLITE_PATH="$LEDGER_DATA_DIR/sqlite"
export CLI=1
node -r @babel/register scripts/cli/txBetweenAccounts.js
node -r @babel/register -r @babel/polyfill scripts/cli/txBetweenAccounts.js

6
scripts/cli/txBetweenAccounts.js

@ -4,17 +4,15 @@ import chalk from 'chalk'
import path from 'path'
import fs from 'fs'
import inquirer from 'inquirer'
import { createAccountModel } from '@ledgerhq/live-common/lib/models/account'
import { formatCurrencyUnit } from '@ledgerhq/live-common/lib/helpers/currencies'
import { formatCurrencyUnit } from '@ledgerhq/live-common/lib/currencies'
import 'globals'
import withLibcore from 'helpers/withLibcore'
import accountModel from 'helpers/accountModel'
import { doSignAndBroadcast } from 'commands/libcoreSignAndBroadcast'
import getDevice from './getDevice'
const accountModel = createAccountModel()
async function main() {
try {
// GET ACCOUNTS

Loading…
Cancel
Save