RGB-WG / rgb-core

RGB Core Library: consensus validation for private & scalable client-validated smart contracts on Bitcoin & Lightning
https://spec.rgb.tech
Apache License 2.0
207 stars 52 forks source link

AssetTag compatible with wasm target #202

Closed crisdut closed 9 months ago

crisdut commented 10 months ago

Description

This PR intent fix Asset Tag initialization to wasm target compilation.

When we try issuing a new contract with wasm target, the builder crashes on AssetTag initialization. I changed std::time::SystemTime to chrono::Local.

CC @cryptoquick

codecov[bot] commented 10 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (729c652) 16.7% compared to head (e433086) 16.7%.

:exclamation: Current head e433086 differs from pull request most recent head aeec368. Consider uploading reports for the commit aeec368 to get more accurate results

Files Patch % Lines
src/contract/fungible.rs 0.0% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #202 +/- ## ====================================== Coverage 16.7% 16.7% ====================================== Files 32 32 Lines 3874 3874 ====================================== Hits 646 646 Misses 3228 3228 ``` | [Flag](https://app.codecov.io/gh/RGB-WG/rgb-core/pull/202/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | Coverage Δ | | |---|---|---| | [rust](https://app.codecov.io/gh/RGB-WG/rgb-core/pull/202/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG) | `16.7% <0.0%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=RGB-WG#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.