fix: verify allowlist tx receipt status in e2e validator helper

This commit is contained in:
vikions 2026-02-23 18:06:45 +01:00
parent 401f646286
commit 2842013c35
No known key found for this signature in database
GPG key ID: AFB3BC46107B9B5F

View file

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