Skip to content

Commit

Permalink
fix: fix wrong direct blockchain api configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Jblew committed Mar 12, 2019
1 parent f757bb5 commit ad76fd8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/actions/daemon/DaemonAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class DaemonAction {
.then(() => ConfigLoader.askForCredentialsIfEmpty(config))
.then(() => {
api = new DirectBlockchainApi(Wise.constructDefaultProtocol(), config.postingWif, {
url: config.steemApi,
apiUrl: config.steemApi,
});
if (config.disableSend) api.setSendEnabled(false);
delegatorWise = new Wise(config.username, api);
Expand Down
2 changes: 1 addition & 1 deletion src/actions/download-rules/DownloadRulesAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class DownloadRulesAction {
private static downloadRules(username: string, config: Config): Promise<EffectuatedSetRules[]> {
const delegatorWise = new Wise(
username,
new DirectBlockchainApi(Wise.constructDefaultProtocol(), "", { url: config.steemApi }),
new DirectBlockchainApi(Wise.constructDefaultProtocol(), "", { apiUrl: config.steemApi }),
);
return delegatorWise.downloadAllRulesets(username);
}
Expand Down
2 changes: 1 addition & 1 deletion src/actions/send-voteorder/SendVoteorderAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class SendVoteorderAction {
const api: DirectBlockchainApi = new DirectBlockchainApi(
Wise.constructDefaultProtocol(),
config.postingWif,
{ url: config.steemApi },
{ apiUrl: config.steemApi },
);
if (config.disableSend) api.setSendEnabled(false);
const wise = new Wise(config.username, api);
Expand Down
2 changes: 1 addition & 1 deletion src/actions/upload-rules/UploadRulesAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class UploadRulesAction {
const api: DirectBlockchainApi = new DirectBlockchainApi(
Wise.constructDefaultProtocol(),
config.postingWif,
{ url: config.steemApi },
{ apiUrl: config.steemApi },
);
if (config.disableSend) api.setSendEnabled(false);
const delegatorWise = new Wise(config.username, api);
Expand Down

0 comments on commit ad76fd8

Please sign in to comment.