diff --git a/test/e2e/framework/validators.ts b/test/e2e/framework/validators.ts index 4dcd074c..4e19dbc5 100644 --- a/test/e2e/framework/validators.ts +++ b/test/e2e/framework/validators.ts @@ -107,7 +107,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`); };