EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 462 forks source link

localnet module is missing #9

Closed crazybits closed 6 years ago

crazybits commented 6 years ago

as subject

jcalfee commented 6 years ago

Localnet was added recently .. Is it your version? Can you be more specific?

> Eos.Localnet() != null
true
crazybits commented 6 years ago

oh, seems i should raise the issue in the eosjs-api project, may i know where is the Localnet implemented, since there is module missing error prompted when run the test case in eosjs-api


const Testnet = require('./testnet')
const Localnet = require('./localnet')
const processArgs = require('./process-args')

module.exports = {
  Testnet,
  Localnet,
  processArgs
}
jcalfee commented 6 years ago

Can you show me the error? It works for me:


>api = require('eosjs-api')
>api.Localnet()
{ getInfo: [Function],
  getBlock: [Function],
  getAccount: [Function],
  getCode: [Function],
  getTableRows: [Function],
  abiJsonToBin: [Function],
  abiBinToJson: [Function],
  getRequiredKeys: [Function],
  pushBlock: [Function],
  pushTransaction: [Function],
  pushTransactions: [Function],
  getTransaction: [Function],
  getTransactions: [Function],
  getKeyAccounts: [Function],
  getControlledAccounts: [Function],
  createTransaction: [Function],
  api: { createTransaction: [Function: createTransaction] } }