fixed GCC issue with fields initialised in wrong order

This commit is contained in:
Some Random Crypto Guy
2025-06-12 16:54:08 +01:00
parent 1e81092e59
commit cbde471d91
2 changed files with 4 additions and 4 deletions

View File

@@ -226,9 +226,9 @@ cryptonote::transaction store_carrot_to_transaction_v1(const std::vector<CarrotE
//L
tx.vin.emplace_back(cryptonote::txin_to_key{ //@TODO: can save 2 bytes by using slim input type
.amount = 0,
.asset_type = "SAL1",
.key_offsets = cryptonote::absolute_output_offsets_to_relative(key_offsets),
.k_image = key_images.at(i),
.asset_type = "SAL1"
.k_image = key_images.at(i)
});
}
@@ -238,9 +238,9 @@ cryptonote::transaction store_carrot_to_transaction_v1(const std::vector<CarrotE
//K_o,vt,anchor_enc
tx.vout.push_back(cryptonote::tx_out{0, cryptonote::txout_to_carrot_v1{
.key = enote.onetime_address,
.asset_type = enote.asset_type,
.view_tag = enote.view_tag,
.encrypted_janus_anchor = enote.anchor_enc,
.asset_type = enote.asset_type,
}});
//a_enc