warp icon indicating copy to clipboard operation
warp copied to clipboard

Add support for selector

Open piwonskp opened this issue 2 years ago • 1 comments

In solidity you can get the function selector by

this.funcName.selector

Currently when we transpile that expression we get invalid cairo code. We should either support it, or throw a dedicated exception

piwonskp avatar Jan 15 '23 17:01 piwonskp

I would love to see this supported over throwing an exception. If you handle this by throwing exceptions please create a new issue to handle it correctly.

JorikSchellekens avatar Jan 18 '23 19:01 JorikSchellekens