second-state / SOLL

SOLL is a new compiler for generate Ewasm from solidity and yul. See a demo here: https://asciinema.org/a/ezJqNLicn5fya02zwu4VXIo8a
https://www.secondstate.io/
377 stars 23 forks source link

Implement abi.encodeWithSelector and abi.encodeWithSignature #63

Closed jacky860226 closed 3 years ago

jacky860226 commented 3 years ago

abi.encodeWithSignature(string memory signature, ...) is equal to abi.encodeWithSelector(bytes4(keccak256(bytes(signature))), ...) https://docs.soliditylang.org/en/v0.7.1/units-and-global-variables.html?highlight=abi#abi-encoding-and-decoding-functions