Uncomment assertion in ERC2771Context.test.js (#2796)

pull/2806/head^2
William Entriken 4 years ago committed by GitHub
parent e1c0f3eaef
commit 3da0cf698f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      test/metatx/ERC2771Context.test.js

@ -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 });
@ -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 });

Loading…
Cancel
Save