diff options
| author | Pieter Wuille <[email protected]> | 2014-09-11 19:15:29 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-16 19:14:32 +0200 |
| commit | 0be990ba34110184c8a5a2c04094311dab5cd84c (patch) | |
| tree | 2eb24931c396ae0dc0c57fee42f345c581bd58c6 /src/qt/walletmodel.cpp | |
| parent | Merge pull request #4928 (diff) | |
| download | discoin-0be990ba34110184c8a5a2c04094311dab5cd84c.tar.xz discoin-0be990ba34110184c8a5a2c04094311dab5cd84c.zip | |
Move CTxDestination from script/script to script/standard
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 8d2c2e96d..ed90914ba 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -241,8 +241,7 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact setAddress.insert(rcp.address); ++nAddresses; - CScript scriptPubKey; - scriptPubKey.SetDestination(CBitcoinAddress(rcp.address.toStdString()).Get()); + CScript scriptPubKey = GetScriptForDestination(CBitcoinAddress(rcp.address.toStdString()).Get()); vecSend.push_back(std::pair<CScript, int64_t>(scriptPubKey, rcp.amount)); total += rcp.amount; |