In https://github.com/safe-global/safe-modules/pull/446, I inlined the signature check function because we didn't want it to revert in unsuccessful cases. I inlined it because the try/catch statement didn't work for internal function calls. Little did I know that I could do this.f() and that would use the CALL opcode instead of JUMP, making the try/catch statement possible
In https://github.com/safe-global/safe-modules/pull/446, I inlined the signature check function because we didn't want it to revert in unsuccessful cases. I inlined it because the
try/catch
statement didn't work for internal function calls. Little did I know that I could dothis.f()
and that would use theCALL
opcode instead ofJUMP
, making thetry/catch
statement possibleMore info: https://www.perplexity.ai/search/if-i-call-1VYIfl5eQEWvJ302U7wVOA#0