-
Notifications
You must be signed in to change notification settings - Fork 48
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
Conversation
metadata: { | ||
...metadata, | ||
...updateArgs, | ||
}, |
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.
Typescript sorcery 🧙
updateArgs, | ||
}).sendAndConfirm(umi); | ||
|
||
await t.throwsAsync(promise, { name: 'PublicKeyMismatch' }); |
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.
This test should be failing for 6039: CreatorDidNotUnverify
root: getCurrentRoot(merkleTreeAccount.tree), | ||
nonce: leafIndex, | ||
index: leafIndex, | ||
currentMetadata: metadata, |
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.
This metadata needs to be updated after the verifyCreator
call.
root: getCurrentRoot(merkleTreeAccount.tree), | ||
nonce: leafIndex, | ||
index: leafIndex, | ||
currentMetadata: metadata, |
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.
This metadata needs to be updated after the verifyCreator
call.
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.
LGTM!
…an/more-update-tests add verified creator umi tests for update metadata
No description provided.