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

[framework] Framework review and do some refactor #1885

Merged
merged 7 commits into from
Jun 14, 2024

Conversation

jolestar
Copy link
Contributor

@jolestar jolestar commented Jun 13, 2024

Summary

  1. make some functions private or friend
  2. remove address::from_ascii_string and replace with address::from_ascii_bytes.
  3. provide bitcoin_hash::from_ascii_bytes for bitcoin reversed hex.

cc @yubing744 and @vegetabledogdog

part of #1683

Copy link

vercel bot commented Jun 13, 2024

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

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2024 7:24am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Jun 14, 2024 7:24am

Copy link

github-actions bot commented Jun 13, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@@ -136,14 +132,14 @@ module moveos_std::wasm {

// 1. Create WASM VM instance (required step)
let wasm_instance = create_wasm_instance(wasm_code);
debug::print(&string::utf8(b"wasm_instance:"));
debug::print(&wasm_instance);
// std::debug::print(&std::string::utf8(b"wasm_instance:"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

debug 日志可以直接清理掉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

在测试用例里,debug还有用,先注释掉吧

@jolestar jolestar requested a review from geometryolife as a code owner June 14, 2024 07:23
@jolestar jolestar merged commit e6b705d into main Jun 14, 2024
8 checks passed
@jolestar jolestar deleted the refactor_bitcoin_tx_progress branch June 14, 2024 08:24
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