Skip to content

fix(contracts): new stricter typecast rules#38

Merged
samlaf merged 1 commit intomainfrom
fix--contracts-new-typecast-rules
Feb 23, 2026
Merged

fix(contracts): new stricter typecast rules#38
samlaf merged 1 commit intomainfrom
fix--contracts-new-typecast-rules

Conversation

@samlaf
Copy link
Collaborator

@samlaf samlaf commented Feb 23, 2026

New rules were enforced in SeismicSystems/seismic-solidity#204, such as not being allowed to abi.encode a shielded type.

Fixed these mindlessly, but I think we should take some time to look at the devex related to our current rules. It looks like we force a lot of manual typecasts which might confuse more than help. For example, we disallow abi encoding shielded types; I think a more intuitive rule would be to allow abi encoding shielded types but forcing the output to be sbytes instead of bytes?

New rules were enforced in SeismicSystems/seismic-solidity#204, such as not being allowed to abi.encode a shielded type.
@samlaf samlaf merged commit 3507b42 into main Feb 23, 2026
@samlaf samlaf deleted the fix--contracts-new-typecast-rules branch February 23, 2026 22:17
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.

1 participant