diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 44d80862..7e840273 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -4113,14 +4113,14 @@ bool validate_ado_ownership(asset_op_verification_context& avc) { asset_operation_ownership_proof_eth aoop_eth{}; r = get_type_in_variant_container(avc.tx.proofs, aoop_eth); - CHECK_AND_ASSERT_MES(r, false, "Ownership validation failed - missing signature (asset_operation_ownership_proof)"); + CHECK_AND_ASSERT_MES(r, false, "Ownership validation failed: asset_operation_ownership_proof_eth is missing"); return crypto::verify_eth_signature(avc.tx_id, last_ado.descriptor.owner_eth_pub_key.value(), aoop_eth.eth_sig); } - // owner_eth_pub_key has no value -- falback to default + // owner_eth_pub_key has no value -- fallback to default asset_operation_ownership_proof aoop = AUTO_VAL_INIT(aoop); r = get_type_in_variant_container(avc.tx.proofs, aoop); - CHECK_AND_ASSERT_MES(r, false, "Ownership validation failed - missing signature (asset_operation_ownership_proof)"); + CHECK_AND_ASSERT_MES(r, false, "Ownership validation failed: asset_operation_ownership_proof is missing"); return crypto::verify_schnorr_sig(avc.tx_id, last_ado.descriptor.owner, aoop.gss); } diff --git a/src/currency_core/currency_basic.h b/src/currency_core/currency_basic.h index e7052146..788f5a69 100644 --- a/src/currency_core/currency_basic.h +++ b/src/currency_core/currency_basic.h @@ -708,7 +708,7 @@ namespace currency std::string meta_info; crypto::public_key owner = currency::null_pkey; // consider premultipling by 1/8 bool hidden_supply = false; - std::optional owner_eth_pub_key; + std::optional owner_eth_pub_key; // note: the size is 33 bytes (if present) uint8_t version = ASSET_DESCRIPTOR_BASE_STRUCTURE_VER;