Closed crazybits closed 6 years ago
Localnet was added recently .. Is it your version? Can you be more specific?
> Eos.Localnet() != null
true
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
}
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] } }
as subject