From dce75f9164e5c47707c0fd93fa53b6e30e7b20cb Mon Sep 17 00:00:00 2001 From: abenso Date: Thu, 2 Jan 2025 16:00:07 -0300 Subject: [PATCH] add flag to cpp test --- CMakeLists.txt | 3 +++ app/src/plan/undelegate.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba62bf0..d46ccd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,6 +124,9 @@ add_definitions( -DLEDGER_MINOR_VERSION=${MINOR_VERSION} ) +# Add flag to compile all Penumbra actions for cpp tests +add_definitions(-DFULL_APP) + ############################################################## # Static Libraries file(GLOB_RECURSE LIB_SRC diff --git a/app/src/plan/undelegate.c b/app/src/plan/undelegate.c index 7679781..9eeb8ac 100644 --- a/app/src/plan/undelegate.c +++ b/app/src/plan/undelegate.c @@ -125,7 +125,7 @@ parser_error_t undelegate_printValue(const parser_context_t *ctx, const undelega written_value = strlen(outVal); // add unbonded amount - snprintf(metadata_buffer, sizeof(metadata_buffer), "uunbonding_start_at_%d_%s", undelegate->from_epoch.index, + snprintf(metadata_buffer, sizeof(metadata_buffer), "uunbonding_start_at_%llu_%s", undelegate->from_epoch.index, validator_identity_bytes); metadata.len = strlen(metadata_buffer); rs_get_asset_id_from_metadata(&metadata, asset_id_bytes, ASSET_ID_LEN);