Skip to content

Commit

Permalink
use multiple validators
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Dec 3, 2024
1 parent 8819724 commit c27c568
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,12 @@ describeSuite({

const externalValidatorsBefore = await relayApi.query.externalValidators.externalValidators();

const rawValidators = ["0x1234567890123456789012345678901234567890123456789012345678901234"];

const rawValidators = [
"0x1234567890123456789012345678901234567890123456789012345678901234",
"0x7894567890123456789012345678901234567890123456789012345678901234",
"0x4564567890123456789012345678901234567890123456789012345678901234",
];

try {
const tx = await gatewayContract.sendOperatorsData(rawValidators, 1);
await tx.wait();
Expand All @@ -185,7 +189,7 @@ describeSuite({
await waitSessions(context, relayApi, 2, null, "Tanssi-relay");

const externalValidators = await relayApi.query.externalValidators.externalValidators();
expect(externalValidators).to.not.eq(externalValidatorsBefore);
expect(externalValidators).to.not.deep.eq(externalValidatorsBefore);

const externalValidatorsHex = externalValidators.toJSON().map((x) => {
return u8aToHex(decodeAddress(x));
Expand Down

0 comments on commit c27c568

Please sign in to comment.