Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
cliff0412 committed Jan 30, 2019
1 parent 7017f20 commit b9821a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/EsplanadeWrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,6 @@ test('voteStartTimestamp', async () => {
expect(await esplanadeWrapper.getVotingData()).toMatchSnapshot();
});

test('getContractIsPassed', async () => {
expect(await esplanadeWrapper.getContractIsPassed('address')).toMatchSnapshot();
test('isContractPassed', async () => {
expect(await esplanadeWrapper.isContractPassed('address')).toMatchSnapshot();
});
4 changes: 2 additions & 2 deletions src/EsplanadeWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export class EsplanadeWrapper extends BaseContractWrapper {
return isStarted.valueOf();
}

public async getContractIsPassed(address: string): Promise<boolean> {
return await this.contract.methods.passedContract(address).call();
public isContractPassed(address: string): Promise<boolean> {
return this.contract.methods.passedContract(address).call();
}

public async getVotingData(): Promise<IVotingData> {
Expand Down
4 changes: 2 additions & 2 deletions src/__snapshots__/EsplanadeWrapper.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ exports[`getAddressPoolSize 2`] = `3`;

exports[`getCandidate 1`] = `"candidatre"`;

exports[`getContractIsPassed 1`] = `true`;

exports[`getContractPoolAddress 1`] = `"custodianAddr1"`;

exports[`getContractPoolAddress 2`] = `"custodianAddr2"`;
Expand Down Expand Up @@ -85,6 +83,8 @@ Object {
}
`;

exports[`isContractPassed 1`] = `true`;

exports[`removeAddress 1`] = `"Read Only Mode"`;

exports[`removeAddress 2`] = `
Expand Down

0 comments on commit b9821a7

Please sign in to comment.