Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Fix App#hasStdlib function
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Jun 29, 2018
1 parent ccf50f5 commit ce03802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/App.js
Expand Up @@ -51,7 +51,7 @@ export default class App {
}

async hasStdlib() {
return (await this.currentStdlib()) === ZERO_ADDRESS
return (await this.currentStdlib()) !== ZERO_ADDRESS
}

async getImplementation(contractName) {
Expand Down
6 changes: 3 additions & 3 deletions test/src/app/App.test.js
Expand Up @@ -51,7 +51,7 @@ contract('App', function ([_, owner]) {
});

it('should tell whether current stdlib is zero', async function () {
(await this.app.hasStdlib()).should.be.false
(await this.app.hasStdlib()).should.be.true
})
};

Expand All @@ -64,7 +64,7 @@ contract('App', function ([_, owner]) {
shouldInitialize();

it('should not have an stdlib initially', async function () {
(await this.app.hasStdlib()).should.be.true
(await this.app.hasStdlib()).should.be.false
})
});

Expand All @@ -76,7 +76,7 @@ contract('App', function ([_, owner]) {
shouldInitialize();

it('should not have an stdlib initially', async function () {
(await this.app.hasStdlib()).should.be.true
(await this.app.hasStdlib()).should.be.false
})
});

Expand Down

0 comments on commit ce03802

Please sign in to comment.