Skip to content

Commit

Permalink
protocol-less networks
Browse files Browse the repository at this point in the history
  • Loading branch information
nsjames committed Jun 1, 2018
1 parent d13482b commit aabec88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified scatter.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions src/plugins/defaults/eos.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class EOS extends Plugin {
importAccount(keypair, network, context, accountSelected){
const getAccountsFromPublicKey = (publicKey, network) => {
return new Promise((resolve, reject) => {
const eos = Eos.Localnet({httpEndpoint:`http://${network.hostport()}`});
const eos = Eos.Localnet({httpEndpoint:`//${network.hostport()}`});
eos.getKeyAccounts(publicKey).then(res => {
if(!res || !res.hasOwnProperty('account_names')){ resolve([]); return false; }

Expand Down Expand Up @@ -84,7 +84,7 @@ export default class EOS extends Plugin {
}

async getBalances(account, network, code = 'eosio.token', table = 'accounts'){
const eos = Eos.Localnet({httpEndpoint:`http://${network.hostport()}`});
const eos = Eos.Localnet({httpEndpoint:`//${network.hostport()}`});
const contract = await eos.contract(code);
return await eos.getTableRows({
json: true,
Expand Down Expand Up @@ -126,7 +126,7 @@ export default class EOS extends Plugin {
return (network, _eos, _options = {}) => {
network = Network.fromJson(network);
if(!network.isValid()) throw Error.noNetwork();
const httpEndpoint = `http://${network.hostport()}`;
const httpEndpoint = `//${network.hostport()}`;

// The proxy stands between the eosjs object and scatter.
// This is used to add special functionality like adding `requiredFields` arrays to transactions
Expand Down

0 comments on commit aabec88

Please sign in to comment.