mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 01:38:32 +00:00
Merge 90c1f320e8 into edcb13dbbc
This commit is contained in:
commit
8ffd98f5a1
1 changed files with 4 additions and 1 deletions
|
|
@ -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`);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue