Skip to content

Creator key#378

Merged
Chucks1093 merged 6 commits into
accesslayerorg:mainfrom
shadrach68:creatorKEY
May 31, 2026
Merged

Creator key#378
Chucks1093 merged 6 commits into
accesslayerorg:mainfrom
shadrach68:creatorKEY

Conversation

@shadrach68

Copy link
Copy Markdown
Contributor

Summary

This PR adds unit testing for the get_key_decimals method to prevent silent regressions if the value is ever changed. It ensures the contract consistently reports the expected token standard decimals (7).

Changes

  • Added matching test: Asserts that client.get_key_decimals() exactly matches the local EXPECTED_DECIMALS constant (set to 7).
  • Added consistency test: Asserts that the decimals value remains strictly identical across state changes as different creators are registered.
  • Defined constant: Added the EXPECTED_DECIMALS named constant directly in the test file as requested.

Related Issues

Closes #364

Checklist

  • The decimals method returns the expected token standard value.
  • The value is consistent across different creator instances.
  • The expected value is defined as a named constant in the test.
  • Code passes cargo test --workspace locally.

@drips-wave

drips-wave Bot commented May 31, 2026

Copy link
Copy Markdown

@shadrach68 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit bf7c810 into accesslayerorg:main May 31, 2026
1 check 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.

Add unit tests for creator key decimals consistency with token standard

2 participants