mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
fix: verify allowlist tx receipt status in e2e validator helper
This commit is contained in:
parent
401f646286
commit
2842013c35
1 changed files with 4 additions and 1 deletions
|
|
@ -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`);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue