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

[Bitcoin] bitseed validity #1581

Merged
merged 18 commits into from
May 17, 2024

Conversation

yubing744
Copy link
Collaborator

Summary

Summary about this PR

  • Closes #issue

Copy link

vercel bot commented Apr 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-rooch-portal-v1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 17, 2024 6:41am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview May 17, 2024 6:41am

@yubing744
Copy link
Collaborator Author

yubing744 commented May 17, 2024

image

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

bash ./scripts/bitcoin/test.sh -u

/// 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);
Copy link
Contributor

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.

Comment on lines +959 to +965
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);
Copy link
Contributor

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> ?

Copy link
Contributor

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.

@jolestar
Copy link
Contributor

image

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

bash ./scripts/bitcoin/test.sh -u

Because the ord.move and bitcoin.move contains break change.

@jolestar
Copy link
Contributor

@steelgeek091 I change the verifier, allow std::string::String and std::ascii::String as data_struct.

@jolestar
Copy link
Contributor

'bitseed/bitseed:0.1.4' needs to be pulled before testing.

I merge this PR first.

@jolestar jolestar merged commit 18693e3 into rooch-network:main May 17, 2024
5 of 7 checks passed
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.

3 participants