Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Comments

Fix TokenAmount tracing (Fixed #108)#230

Merged
sappenin merged 10 commits intomainfrom
df/fix-108-trace-amount
Sep 29, 2025
Merged

Fix TokenAmount tracing (Fixed #108)#230
sappenin merged 10 commits intomainfrom
df/fix-108-trace-amount

Conversation

@sappenin
Copy link
Collaborator

@sappenin sappenin commented Sep 23, 2025

Fixes #108 to support full emission of all TokenAmount types during tracing in the wasm-host-simulator.

  • Update trace_amount host function in host simulator.
  • Fix TokenAmount to use STAmount bytes logic.
  • Add TokenAmount display logic for tracing.
  • Add unit tests.
  • Add e2e-tests.

Context of Change

  • Refactor (non-breaking change that only restructures code)

* Update `trace_amount` host function in host simulator.
* Fix `TokenAmount` to STAmount bytes logic.
* Add unit tests.
* Add e2e-tests.
# Conflicts:
#	projects/e2e-tests/host_functions_test/src/lib.rs
@sappenin sappenin self-assigned this Sep 23, 2025
@sappenin sappenin requested a review from mvadari September 23, 2025 22:16
@sappenin sappenin enabled auto-merge (squash) September 29, 2025 22:27
@sappenin sappenin merged commit 0777c65 into main Sep 29, 2025
9 checks passed
@sappenin sappenin deleted the df/fix-108-trace-amount branch September 29, 2025 22:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Craft to use trace_amount host function instead of helper method.

2 participants