diff --git a/test/e2e/framework/validators.ts b/test/e2e/framework/validators.ts index a6c0ff38..3ae023e1 100644 --- a/test/e2e/framework/validators.ts +++ b/test/e2e/framework/validators.ts @@ -111,7 +111,10 @@ export const addValidatorToAllowlist = async ( account: getOwnerAccount(), chain: null }); - await connectors.publicClient.waitForTransactionReceipt({ hash }); + const receipt = await connectors.publicClient.waitForTransactionReceipt({ hash }); + if (receipt.status !== "success") { + throw new Error(`Add validator to allowlist failed: ${receipt.status}`); + } logger.debug(`Validator ${validatorName} added to allowlist`); };