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 Call.value in init() #519

Open
nikita-fuchs opened this issue Dec 6, 2024 · 0 comments
Open

Fix Call.value in init() #519

nikita-fuchs opened this issue Dec 6, 2024 · 0 comments

Comments

@nikita-fuchs
Copy link
Contributor

I was puzzled to find out today that Call.value is always 0 inside the init() function, regardless of whether some amount was sent in the tx or not. The current workaround seems to be using Contract.balance, as in that context it represents the same amount (at least for the cases I could think of so far). If we consider this to be formally true, I guess a tiny compiler trick should make Call.value work easily?

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

No branches or pull requests

1 participant