mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge pull request #240 from tdudz/settoassetfix
fix SetToAsset bug where vchCommitment wasn't cleared before writing
This commit is contained in:
commit
d9207fc4f4
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
void CConfidentialAsset::SetToAsset(const CAsset& asset)
|
||||
{
|
||||
vchCommitment.clear();
|
||||
vchCommitment.reserve(nExplicitSize);
|
||||
vchCommitment.push_back(1);
|
||||
vchCommitment.insert(vchCommitment.end(), asset.begin(), asset.end());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue