1
0
Fork 0
forked from lthn/blockchain

one more constructor overload: and fixed

This commit is contained in:
cryptozoidberg 2022-10-12 23:05:25 +02:00
parent b3b57ae534
commit 0b97855eeb
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -102,8 +102,10 @@ namespace currency
tx_destination_entry(uint64_t a, const account_public_address& ad) : amount(a), addr(1, ad) {}
tx_destination_entry(uint64_t a, const account_public_address& ad, const crypto::hash& aid) : amount(a), addr(1, ad), asset_id(aid) {}
tx_destination_entry(uint64_t a, const account_public_address& ad, uint64_t ut) : amount(a), addr(1, ad), unlock_time(ut) {}
tx_destination_entry(uint64_t a, const std::list<account_public_address>& addr) : amount(a), addr(addr), minimum_sigs(addr.size()){}
tx_destination_entry(uint64_t a, const std::list<account_public_address>& addr, const crypto::hash& aid) : amount(a), addr(addr), minimum_sigs(addr.size()), asset_id(aid) {}
BEGIN_SERIALIZE_OBJECT()
FIELD(amount)
FIELD(addr)