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

v0.18.0 - "TypeError: Cannot read properties of null (reading 'accept')" when parsing old-style value transfers msg.sender.send{1 ETH}() #6

Open
tintinweb opened this issue May 5, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation upstream bug

Comments

@tintinweb
Copy link
Owner

tracking this here:

#4 (comment)

Testcase: https://github.com/tintinweb/solidity-workspace/blob/master/examples/learnSolidity.sol#L61-L62

msg.sender.send{1 ETH}(); //this is actually illegal - note missing 'value:'
RandomContract(lol).doSomething{value: 1 ETH}();

Leads to unhandled exception:

./js/solidity-workspace/node_modules/@solidity-parser/parser/dist/index.cjs.js:3252
    }, this) : t2.accept(this);
                  ^

TypeError: Cannot read properties of null (reading 'accept')

refs: #4

@tintinweb tintinweb added bug Something isn't working documentation Improvements or additions to documentation labels May 5, 2024
@tintinweb tintinweb added upstream bug and removed bug Something isn't working labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation upstream bug
Projects
None yet
Development

No branches or pull requests

1 participant