Skip to content
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

add verified creator umi tests for update metadata #78

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

nhanphan
Copy link
Contributor

No description provided.

@nhanphan nhanphan requested a review from danenbm January 22, 2024 23:54
Comment on lines +653 to +656
metadata: {
...metadata,
...updateArgs,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript sorcery 🧙

updateArgs,
}).sendAndConfirm(umi);

await t.throwsAsync(promise, { name: 'PublicKeyMismatch' });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should be failing for 6039: CreatorDidNotUnverify

root: getCurrentRoot(merkleTreeAccount.tree),
nonce: leafIndex,
index: leafIndex,
currentMetadata: metadata,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This metadata needs to be updated after the verifyCreator call.

root: getCurrentRoot(merkleTreeAccount.tree),
nonce: leafIndex,
index: leafIndex,
currentMetadata: metadata,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This metadata needs to be updated after the verifyCreator call.

Copy link
Contributor

@danenbm danenbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nhanphan nhanphan merged commit 1911b95 into main Jan 23, 2024
9 checks passed
@nhanphan nhanphan deleted the nhan/more-update-tests branch January 23, 2024 19:03
nicholasoxford pushed a commit to Primitives-xyz/primitives-protocol that referenced this pull request Jan 16, 2025
…an/more-update-tests

add verified creator umi tests for update metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants