mirror of
https://github.com/logos-blockchain/logos-execution-zone-module.git
synced 2026-07-08 19:49:26 +00:00
fix: suggestion 1
This commit is contained in:
parent
15b55c6ead
commit
404f81dde4
@ -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, ... }:
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user