Skip to content

Commit

Permalink
Uncomment assertion in ERC2771Context.test.js (#2796)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Aug 3, 2021
1 parent e1c0f3e commit 3da0cf6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/metatx/ERC2771Context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ contract('ERC2771Context', function (accounts) {
};

const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } });

// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
expect(await this.forwarder.verify(req, sign)).to.equal(true);

const { tx } = await this.forwarder.execute(req, sign);
await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Sender', { sender: this.sender });
Expand All @@ -101,9 +99,7 @@ contract('ERC2771Context', function (accounts) {
};

const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } });

// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
expect(await this.forwarder.verify(req, sign)).to.equal(true);

const { tx } = await this.forwarder.execute(req, sign);
await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Data', { data, integerValue, stringValue });
Expand Down

0 comments on commit 3da0cf6

Please sign in to comment.