This commit is contained in:
VIkions 2026-05-12 15:03:25 +02:00 committed by GitHub
commit 8ffd98f5a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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