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 alephium/alephium-web3#489 - Unit tests fail for map inside subcontract #490

Merged
merged 6 commits into from
Jan 28, 2025

Conversation

kwiscion
Copy link

  • add test to reproduce the issue
  • update extractMapsFromApiResult to consider all contracts for maps

Jakub Kwiecien added 3 commits January 23, 2025 14:38
- Added new MapTestSub contract with init function for creating subcontracts.
- Updated .project.json to include new source code hashes for MapTest and its related functions.
- Created MapTestSub TypeScript definitions and JSON artifacts for integration.
- Updated index.ts to export MapTestSub.
- Added unit tests for MapTestSub initialization and state verification.
- Adjusted expected source file count from 61 to 62 in the contract loading test.
- Updated assertions for source file types to match the new structure.
@Lbqds
Copy link
Member

Lbqds commented Jan 24, 2025

Hey @kwiscion, thank you so much for your fix ❤️

I’ve created a new branch based on yours and added a few commits. If you’d like, feel free to cherry-pick those commits into your branch, or I can open a new PR to include them for further review.

@kwiscion
Copy link
Author

@Lbqds thanks! I added your changes here

@polarker polarker merged commit 612a379 into alephium:master Jan 28, 2025
6 of 7 checks passed
@polarker
Copy link
Member

Hey @kwiscion , this fix is included in release 1.11.3. Thank you for your contribution!

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.

3 participants