-
Notifications
You must be signed in to change notification settings - Fork 94
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
[Bitcoin] bitseed validity #1581
[Bitcoin] bitseed validity #1581
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
bf647a1
to
f3a4ce3
Compare
29ab79c
to
62f18d3
Compare
081a66d
to
a02dae7
Compare
2215a78
to
70dcc2b
Compare
After rebasing the main branch, compiling frameworks reports an error with no useful error message @jolestar Please help me look at this problem. Use the following command to trigger
|
/// Returns true if Inscription `object` contains metaprotocol validity | ||
public fun exists_metaprotocol_validity(inscription_id: InscriptionID): bool{ | ||
let store_obj_id = object::named_object_id<InscriptionStore>(); | ||
let store_obj = object::borrow_mut_object_shared<InscriptionStore>(store_obj_id); |
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.
Do not need to borrow_mut
.
let inscription_object_id = derive_inscription_id(inscription_id); | ||
let exists = object::contains_object_field<InscriptionStore, Inscription>(store_obj, inscription_object_id); | ||
if (!exists) { | ||
return false | ||
}; | ||
|
||
let inscription_obj = object::borrow_mut_object_field<InscriptionStore, Inscription>(store_obj, inscription_object_id); |
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.
provide a function borrow_inscription_option(InscriptionID):Option<Inscription>
?
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.
We can migrate the bitseed
command to rooch bitseed
in the future.
…contains break change
3900a75
to
217b1a6
Compare
Because the ord.move and bitcoin.move contains break change. |
@steelgeek091 I change the verifier, allow |
'bitseed/bitseed:0.1.4' needs to be pulled before testing. I merge this PR first. |
Summary
Summary about this PR