Update onboarding disabled error
Some checks failed
Lint & Build / lint_and_build (20.x) (pull_request) Successful in 1m53s
Tests / sdk_tests (pull_request) Failing after 9m0s

This commit is contained in:
Prathamesh Musale 2024-09-05 10:53:55 +05:30
parent bb7cd9b2cb
commit 1c16b64752
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@ import { Wallet } from 'ethers';
import { DirectSecp256k1Wallet, AccountData as CosmosAccount } from '@cosmjs/proto-signing';
import { Registry, Account } from './index';
import { Registry, Account, ONBOARDING_DISABLED_ERROR } from './index';
import { getConfig } from './testing/helper';
import { Participant } from './proto/cerc/onboarding/v1/onboarding';
@ -80,7 +80,6 @@ const onboardingDisabledTests = () => {
});
test('Error on onboarding attempt.', async () => {
const errorMsg = 'Validator onboarding is disabled: invalid request';
const mnemonic = Account.generateMnemonic();
ethWallet = Wallet.fromMnemonic(mnemonic);
@ -100,7 +99,7 @@ const onboardingDisabledTests = () => {
kycId: DUMMY_KYC_ID
}, privateKey, fee);
} catch (error: any) {
expect(error.toString()).toContain(errorMsg);
expect(error.toString()).toContain(ONBOARDING_DISABLED_ERROR);
}
});

View File

@ -15,7 +15,7 @@ export interface MsgOnboardParticipantEncodeObject extends EncodeObject {
readonly value: MsgOnboardParticipant;
}
export const ONBOARDING_DISABLED_ERROR = 'Validator onboarding is disabled';
export const ONBOARDING_DISABLED_ERROR = 'Onboarding is disabled';
interface ethPayload {
address: string