diff --git a/flake.nix b/flake.nix index 38565f5..c3c4b97 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ inputs = { logos-module-builder.url = "github:logos-co/logos-module-builder"; nix-bundle-lgx.url = "github:logos-co/nix-bundle-lgx"; - logos-execution-zone.url = "github:logos-blockchain/logos-execution-zone?rev=571f35b3849c889f893109fd2b9dad040f0a3b57"; # latest `dev` + logos-execution-zone.url = "github:logos-blockchain/logos-execution-zone?rev=571f35b3849c889f893109fd2b9dad040f0a3b57"; }; outputs = inputs@{ logos-module-builder, ... }: diff --git a/src/lez_core_module.cpp b/src/lez_core_module.cpp index 4f60d15..dbd7290 100644 --- a/src/lez_core_module.cpp +++ b/src/lez_core_module.cpp @@ -1235,16 +1235,13 @@ bool LEZCoreModule::check_label_available(const std::string& label) { int64_t LEZCoreModule::add_label(const std::string& label, const std::string& account_id_hex, bool is_private) { const char* label_c = label.c_str(); - FfiAccountIdWithPrivacy acc_id_with_privacy; - FfiBytes32 id{}; if (!hexToBytes32(account_id_hex, &id)) { fprintf(stderr, "wallet_ffi_add_label: invalid account_id_hex"); return WalletFfiError::INVALID_ACCOUNT_ID; } - acc_id_with_privacy.account_id = id; - acc_id_with_privacy.is_private = is_private; + FfiAccountIdWithPrivacy acc_id_with_privacy = { id, is_private }; WalletFfiError error = wallet_ffi_add_label(walletHandle, label_c, acc_id_with_privacy); if (error != SUCCESS) {