Repository navigation
Remove validator account from the QN #4915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0acfb0e
21ec85c
e04877d
90a5768
2c1f33a
1c2268c
b6f070f
546553a
bfb028e
62162d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,21 +61,22 @@ export class InviteMembersHappyCaseFixture extends StandardizedFixture { | |
| handle, | ||
| rootAccount, | ||
| controllerAccount, | ||
| metadata: { name, about, avatar, externalResources, validatorAccount }, | ||
| metadata: { name, about, avatar, externalResources }, | ||
| isVerified, | ||
| entry, | ||
| invitedBy, | ||
| inviteCount, | ||
| } = qMember | ||
| const metadata = Utils.metadataFromBytes(MembershipMetadata, txParams.metadata) | ||
|
|
||
| assert.equal(handle, txParams.handle) | ||
| assert.equal(rootAccount, txParams.root_account) | ||
| assert.equal(controllerAccount, txParams.controller_account) | ||
| assert.equal(name, metadata.name) | ||
| assert.equal(about, metadata.about) | ||
| assert.equal(inviteCount, 0) | ||
| assert.equal(avatar?.avatarUri, metadata.avatarUri || undefined) | ||
| assert.equal(validatorAccount, metadata.validatorAccount) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't add command. because isVerifiedValidator is not defined. |
||
|
|
||
| assert.includeDeepMembers( | ||
| externalResources ?? [], | ||
| metadata.externalResources?.map(asMembershipExternalResource) ?? [] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,6 @@ export type MemberProfileData = { | |
| about?: string | null | ||
| avatarUri?: string | null | ||
| externalResources?: MembershipMetadata.IExternalResource[] | null | ||
| validatorAccount?: string | null | ||
| } | ||
|
|
||
| export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture { | ||
|
|
@@ -57,7 +56,6 @@ export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture { | |
| ) | ||
| assert.isFalse(Utils.hasDuplicates(metadata.externalResources?.map(({ type }) => type))) | ||
| assert.equal(metadata.isVerifiedValidator, false) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep this |
||
| assert.equal(metadata.validatorAccount, expected.validatorAccount) | ||
| } | ||
|
|
||
| public getExpectedValues(): MemberProfileData { | ||
|
|
@@ -69,9 +67,6 @@ export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture { | |
| externalResources: isSet(this.newValues.externalResources) | ||
| ? this.newValues.externalResources || null | ||
| : this.oldValues.externalResources, | ||
| validatorAccount: isSet(this.newValues.validatorAccount) | ||
| ? this.newValues.validatorAccount || null | ||
| : this.oldValues.validatorAccount, | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -107,7 +102,6 @@ export class UpdateProfileHappyCaseFixture extends BaseQueryNodeFixture { | |
| about: this.newValues.about, | ||
| avatarUri: this.newValues.avatarUri, | ||
| externalResources: this.newValues.externalResources, | ||
| validatorAccount: this.newValues.validatorAccount, | ||
| }) | ||
| this.tx = this.api.tx.members.updateProfile( | ||
| this.memberContext.memberId, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here same