Timeline for How to bubble up a custom error when using DELEGATECALL?
Current License: CC BY-SA 4.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 13, 2021 at 10:56 | comment | added | Shiri |
@Ismael Did you notice that the docs also say that try/catch doesn't apply to delegatecall ? Errors only "bubble up" to be catchable for non sub-calls.
|
|
S Oct 11, 2021 at 0:56 | history | bounty ended | Ismael♦ | ||
S Oct 11, 2021 at 0:56 | history | notice removed | Ismael♦ | ||
S Oct 8, 2021 at 16:36 | history | bounty started | Ismael♦ | ||
S Oct 8, 2021 at 16:36 | history | notice added | Ismael♦ | Reward existing answer | |
Oct 7, 2021 at 15:18 | vote | accept | Paul Razvan Berg | ||
Oct 7, 2021 at 9:32 | answer | added | diccccn | timeline score: 16 | |
Oct 6, 2021 at 14:25 | answer | added | Yamen Merhi | timeline score: 1 | |
S Oct 6, 2021 at 9:05 | history | bounty ended | CommunityBot | ||
S Oct 6, 2021 at 9:05 | history | notice removed | CommunityBot | ||
Sep 30, 2021 at 6:37 | comment | added | Paul Razvan Berg | Not yet, will do. Thanks for the tip @Ismael. | |
Sep 30, 2021 at 4:16 | comment | added | Ismael♦ | The solidity docs mention that try/catch should caught an exception. Did you try using them? | |
Sep 28, 2021 at 14:24 | comment | added | Paul Razvan Berg | @Itération122442 contract A would revert with the same custom error as contract B, not a different error, and not a generic reason-less revert. | |
Sep 28, 2021 at 14:23 | comment | added | Paul Razvan Berg | Hey @LauriPeltonen, that's a good point. I updated the question title to be more specific. The question is particularly about the case when using DELEGATECALL. | |
Sep 28, 2021 at 14:23 | history | edited | Paul Razvan Berg | CC BY-SA 4.0 |
be more specific in question title
|
Sep 28, 2021 at 8:53 | comment | added | Lauri Peltonen | Maybe I'm misunderstanding something. This is from the link you posted: "The error data by default bubbles up through the chain of external calls, which means that a contract may forward an error not defined in any of the contracts it calls directly. Furthermore, any contract can fake any error by returning data that matches an error signature, even if the error is not defined anywhere." | |
Sep 28, 2021 at 7:13 | comment | added | Itération 122442 | What deos "bubble that error" mean ? | |
S Sep 28, 2021 at 7:12 | history | bounty started | Ismael♦ | ||
S Sep 28, 2021 at 7:12 | history | notice added | Ismael♦ | Draw attention | |
Sep 6, 2021 at 11:52 | history | asked | Paul Razvan Berg | CC BY-SA 4.0 |