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