Error: Segmentation fault (core dumped)
q871795224 opened this issue · 2 comments
q871795224 commented
When I use the solidity to ewasm function of soll, soll always reports an error “Segmentation fault (core dumped)“, is there any way to solve it?
The contract is as follows:
contract Caller {
function callAddress(address a) {
a.call();
}
}
The command I used is:
root@6a562140ab6a:~/soll# ~/soll/build/tools/soll/soll Caller.sol
the result is:
Segmentation fault (core dumped)
hydai commented
Thanks for reporting this issue.
If you want to call a contract without any payload, please use a.call("")
instead.
In this case, soll should prints an error message about the there is no parameter provided.
According to solidity documents, call
function should have a single bytes memory parameter.
https://solidity.readthedocs.io/en/v0.7.4/types.html#members-of-addresses
q871795224 commented
It helps a lot, thanks you!