From 1d035e2676df7c5b80dc68128b228282a8c325d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Tue, 25 Jul 2023 14:55:19 -0600 Subject: [PATCH] Update test/metatx/ERC2771Context.test.js Co-authored-by: Hadrien Croubois --- test/metatx/ERC2771Context.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/metatx/ERC2771Context.test.js b/test/metatx/ERC2771Context.test.js index 061e765bdaa..a907e502cdd 100644 --- a/test/metatx/ERC2771Context.test.js +++ b/test/metatx/ERC2771Context.test.js @@ -86,9 +86,9 @@ contract('ERC2771Context', function (accounts) { // The forwarder doesn't produce calls with calldata length less than 20 bytes const recipient = await ERC2771ContextMock.new(anotherAccount); - const { tx } = await recipient.msgSender({ from: anotherAccount }); + const { receipt } = await recipient.msgSender({ from: anotherAccount }); - await expectEvent.inTransaction(tx, ERC2771ContextMock, 'Sender', { sender: anotherAccount }); + await expectEvent(receipt, 'Sender', { sender: anotherAccount }); }); });