Skip to content

Conversation

@Jds-23
Copy link
Contributor

@Jds-23 Jds-23 commented Dec 16, 2025

Closes #643

  • Added errors AddressNotPayable and ContractNotPayable
  • Added conversion match arms in try_convert_explicit_to:
    • contractaddress / address payable (with receivability checks)
  • Refactored Payable expression handler to use try_convert_explicit_to
  • Added helper function can_receive_ether() to check contract receivability

@onbjerg onbjerg added C-enhancement Category: an issue proposing an enhancement or a PR with one A-sema Area: semantic analysis labels Dec 16, 2025
Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

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

Labels

A-sema Area: semantic analysis C-enhancement Category: an issue proposing an enhancement or a PR with one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contracts<->address explicit conversions

3 participants