Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Garcia authored and porkchop committed Dec 10, 2019
1 parent ad8ba56 commit 46b6ac0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist-web/waxjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/WhitelistedContract.ts → src/IWhitelistedContract.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface WhitelistedContract {
export interface IWhitelistedContract {
contract: string;
domain: string;
recipients: string[];
Expand Down
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Api, JsonRpc, RpcError } from "eosjs";
import { IWhitelistedContract } from "./IWhitelistedContract";
import { WaxEventSource } from "./WaxEventSource";
import { WhitelistedContract } from "./WhitelistedContract";

export class WaxJS {
private waxEventSource: WaxEventSource;
Expand All @@ -9,7 +9,7 @@ export class WaxJS {
private userAccount: string;
private pubKeys: string[];
private signingWindow: Window;
private whitelistedContracts: WhitelistedContract[];
private whitelistedContracts: IWhitelistedContract[];

constructor(
rcpEndpoint: string,
Expand Down Expand Up @@ -45,8 +45,8 @@ export class WaxJS {

private async loginViaEndpoint() {
const response = await fetch(this.waxAutoSigningURL + "login", {
method: "get",
credentials: "include"
credentials: "include",
method: "get"
});
if (!response.ok) {
throw new Error(
Expand Down Expand Up @@ -158,10 +158,10 @@ export class WaxJS {
body: JSON.stringify({
transaction: Object.values(transaction)
}),
credentials: "include",
headers: {
"Content-Type": "application/json"
},
credentials: "include",
method: "POST"
});
if (!response.ok) {
Expand Down

0 comments on commit 46b6ac0

Please sign in to comment.