Skip to content

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

@tintinweb

Description

@tintinweb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions