EYBlockchain / starlight

:zap: solidity --> zApp transpiler :zap:
Other
188 stars 38 forks source link

Support addresses as inputs to public functions. #307

Closed lydiagarms closed 3 months ago

lydiagarms commented 4 months ago

Blocked by changes in revert branch.

When an address is an input to a public function, we get the following error:

Error: invalid address (argument="address", value={"_hex":"0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e"}, code=INVALID_ARGUMENT, version=address/5.7.0) (argument="newAdmin", value={"_hex":"0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e"}, code=INVALID_ARGUMENT, version=abi/5.7.0)

Test with the contract revert.zol.

Also consider whether any other types of variables are unsupported.