Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Feb 20, 2024
1 parent 91bc864 commit 4828e11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/handle_init_contract.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ void handle_init_contract(ethPluginInitContract_t *msg) {
case CURVE_POOL_EXCHANGE:
case CURVE_POOL_EXCHANGE_UNDERLYING:
if (is_fuzz_test) {
// Workaround to revert during fuzz tests.
// Since `txContent->destination` isn't populated during fuzz tests,
// it'll throw a null pointer exception causing the fuzz tests
// to fail on CI. Right way would be to pass some value to
// `txContent->destination` but that breaks a lot of
// other fuzz tests.
msg->result = ETH_PLUGIN_RESULT_ERROR;
return;
}
Expand Down

0 comments on commit 4828e11

Please sign in to comment.