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

fix: Make iroha_smart_contract_utils log and dbg functions work outside of wasm #4725

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

DCNick3
Copy link
Contributor

@DCNick3 DCNick3 commented Jun 13, 2024

Description

This PR adds support for iroha_smart_contract_utils's log and dbg functions to be used outside of wasm. This allows writing tests to be ran against the host target and to still use those wasm-specific functions.

Both implementations just print the requested object to stderr.

As a drive-by, this also makes sure to run wasm tests from iroha_smart_contract_utils, which was omitted in CI for some time.

Linked issue

Fixes #4721

Benefits

  • make CI pass

@DCNick3 DCNick3 changed the title Make iroha_smart_contract_utils log and dbg functions work outside of wasm fix: Make iroha_smart_contract_utils log and dbg functions work outside of wasm Jun 13, 2024
Erigara
Erigara previously approved these changes Jun 13, 2024
@mversic mversic self-assigned this Jun 17, 2024
@mversic mversic merged commit 6d3c9d7 into hyperledger-iroha:main Jun 19, 2024
10 of 11 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.

[BUG] linking fails on cargo test -p iroha_executor --features debug
3 participants