Unverified Commit 3da0cf69 by William Entriken Committed by GitHub

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

parent e1c0f3ea
...@@ -76,9 +76,7 @@ contract('ERC2771Context', function (accounts) { ...@@ -76,9 +76,7 @@ contract('ERC2771Context', function (accounts) {
}; };
const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } }); const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } });
expect(await this.forwarder.verify(req, sign)).to.equal(true);
// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
const { tx } = await this.forwarder.execute(req, sign); const { tx } = await this.forwarder.execute(req, sign);
await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Sender', { sender: this.sender }); await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Sender', { sender: this.sender });
...@@ -101,9 +99,7 @@ contract('ERC2771Context', function (accounts) { ...@@ -101,9 +99,7 @@ contract('ERC2771Context', function (accounts) {
}; };
const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } }); const sign = ethSigUtil.signTypedMessage(this.wallet.getPrivateKey(), { data: { ...this.data, message: req } });
expect(await this.forwarder.verify(req, sign)).to.equal(true);
// rejected by lint :/
// expect(await this.forwarder.verify(req, sign)).to.be.true;
const { tx } = await this.forwarder.execute(req, sign); const { tx } = await this.forwarder.execute(req, sign);
await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Data', { data, integerValue, stringValue }); await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Data', { data, integerValue, stringValue });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment