diff --git a/configure.ac b/configure.ac index d73e51c54b..54a61c2c60 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ define(_CLIENT_VERSION_MINOR, 0) define(_CLIENT_VERSION_BUILD, 0) define(_CLIENT_VERSION_RC, 0) define(_CLIENT_VERSION_IS_RELEASE, true) -define(_COPYRIGHT_YEAR, 2023) +define(_COPYRIGHT_YEAR, 2024) define(_COPYRIGHT_HOLDERS,[The %s Developers]) define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Qtum Core]]) AC_INIT([Qtum Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_BUILD)m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/qtumproject/qtum/issues],[qtum],[https://qtum.org/]) diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index cbe7ab04f0..e5baa2ea54 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -65,7 +65,19 @@ QList TransactionRecord::decomposeTransaction(const interface } } - if (fAllFromMe || !any_from_me) { + + if(nNet < 0 && wtx.has_create_or_call && (fAllFromMe || !any_from_me)) { + TransactionRecord sub(hash, nTime); + sub.idx = 0; + sub.credit = nNet; + sub.type = TransactionRecord::ContractSend; + + // Use the same destination address as in the contract RPCs + sub.address = toStringHash160(wtx.tx_sender_key); + + parts.append(sub); + } + else if (fAllFromMe || !any_from_me) { for (const isminetype mine : wtx.txout_is_mine) { if(mine & ISMINE_WATCH_ONLY) involvesWatchAddress = true;