Skip to content

Lyd/unsupported pub#487

Merged
SwatiEY merged 4 commits into
masterfrom
lyd/unsupportedPub
Apr 20, 2026
Merged

Lyd/unsupported pub#487
SwatiEY merged 4 commits into
masterfrom
lyd/unsupportedPub

Conversation

@lydiagarms
Copy link
Copy Markdown
Collaborator

@lydiagarms lydiagarms commented Apr 16, 2026

Summary

This PR fixes two bugs in test/real-world-zapps/Voting.zol:

  • Only a small subset of types are supported for secret variables. However, we should do the same for public variables that interact with secret ones, as discussed in Create errors for unsupported types for public variables that interact with secrets #486. In Voting.zol although the bytes32 variables are public variables, they interact with secret ones and so we must use bytes20 which is supported.
  • There is a bug in deployment due to two variables being created with the same name. This is because the constructor is input a public address _admin. The default address is automatically used for public addresses, and so _admin is set to that. However, because _admin is also input to the deployment via the cnstrctr.mjs file.

Related Issues

Checklist

  • Tests added/updated
  • CI passes
  • No secrets/keys committed
  • Docs updated (if needed)
  • Backwards compatible (or noted breaking change)

How to test

  1. Test Voting.zol in real-world-zapps.

Screenshots / Evidence (if applicable)

Screenshot 2026-04-16 at 17 04 46 Screenshot 2026-04-16 at 17 15 48 Screenshot 2026-04-16 at 17 09 27

@lydiagarms lydiagarms force-pushed the lyd/unsupportedPub branch 2 times, most recently from e969c4f to eebe4a9 Compare April 16, 2026 13:41
@lydiagarms lydiagarms requested review from SwatiEY and Wei-257 April 16, 2026 17:31
Copy link
Copy Markdown
Contributor

@SwatiEY SwatiEY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

SwatiEY
SwatiEY previously approved these changes Apr 20, 2026
Comment thread src/transformers/visitors/explode.ts Outdated
@SwatiEY SwatiEY merged commit e4780e1 into master Apr 20, 2026
2 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.10.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants