From 3e7663f2da6941eb2625328fb81153d99c77e44b Mon Sep 17 00:00:00 2001 From: Shahul Hameed <10547529+shahthepro@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:10:52 +0400 Subject: [PATCH] Add comment --- src/handle_init_contract.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/handle_init_contract.c b/src/handle_init_contract.c index 63962722..e62097f5 100644 --- a/src/handle_init_contract.c +++ b/src/handle_init_contract.c @@ -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; }