From 4d2c0aff7dd491c05dc3fd181d57c977a3b80593 Mon Sep 17 00:00:00 2001 From: Matthew Lam Date: Thu, 26 Oct 2023 21:06:58 +0000 Subject: [PATCH] add return after storing failed --- contracts/src/Teleporter/TeleporterMessenger.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/src/Teleporter/TeleporterMessenger.sol b/contracts/src/Teleporter/TeleporterMessenger.sol index d007455c5..127369a9b 100644 --- a/contracts/src/Teleporter/TeleporterMessenger.sol +++ b/contracts/src/Teleporter/TeleporterMessenger.sol @@ -752,6 +752,7 @@ contract TeleporterMessenger is ITeleporterMessenger, ReentrancyGuards { // provided enough gas to meet the required gas limit. if (!success) { _storeFailedMessageExecution(originChainID, message); + return; } emit MessageExecuted(originChainID, message.messageID);