diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 8a1ff0a53..13a45756b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2844,7 +2844,7 @@ bool CWallet::GetBudgetSystemCollateralTX(CTransaction& tx, uint256 hash, CAmoun bool CWallet::GetBudgetSystemCollateralTX(CWalletTx& tx, uint256 hash, CAmount amount, bool fUseInstantSend) { // make our change address - CReserveKey reservekey(pwalletMain); + CReserveKey reservekey(this); CScript scriptChange; scriptChange << OP_RETURN << ToByteVector(hash);