Open bitzoic opened 2 weeks ago
I feel this should be compile time, because for 99% of the use cases where these functions will be used correctly, they will incur unnecessary gas costs on every call. And if someone does mistakenly use these functions in the wrong context, it makes much more sense for the error to be at compile time rather than in the form of a result
Currently, when calling the following functions outside of out a contract, the function will revert. In order to prevent misuse we should consider adding a check on the context before using the
fp
opcode