diff --git a/CHANGELOG.md b/CHANGELOG.md index 299bc6d2a..341313670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Security +## [0.6.1] - 2023-06-26 +### Fix +- [\#361](https://github.com/Manta-Network/manta-rs/pull/361) Asset selection fix + ## [0.6.0] - 2023-06-20 ### Added - [\#355](https://github.com/Manta-Network/manta-rs/pull/355) UTXO consolidation signer method. diff --git a/Cargo.toml b/Cargo.toml index f26761e55..84bf623c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] repository = "https://github.com/Manta-Network/manta-rs" diff --git a/manta-accounting/Cargo.toml b/manta-accounting/Cargo.toml index b8487f9b8..8af7353aa 100644 --- a/manta-accounting/Cargo.toml +++ b/manta-accounting/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-accounting" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-accounting/src/asset.rs b/manta-accounting/src/asset.rs index 98d3f8c76..60c0fc22f 100644 --- a/manta-accounting/src/asset.rs +++ b/manta-accounting/src/asset.rs @@ -804,8 +804,10 @@ macro_rules! impl_asset_map_for_maps_body { } else if value == &asset.value { return Selection::new(Default::default(), vec![(key.clone(), value.clone())]); } else { - sum.value.add_assign(value.clone()); - values.push((key.clone(), value.clone())); + if sum.value < asset.value { + sum.value.add_assign(value.clone()); + values.push((key.clone(), value.clone())); + } } } if let Some((best_key, best_value)) = min_max_asset { diff --git a/manta-benchmark/Cargo.toml b/manta-benchmark/Cargo.toml index b00a55941..f88822603 100644 --- a/manta-benchmark/Cargo.toml +++ b/manta-benchmark/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-benchmark" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-crypto/Cargo.toml b/manta-crypto/Cargo.toml index 5cb19da6b..6d4110ae9 100644 --- a/manta-crypto/Cargo.toml +++ b/manta-crypto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-crypto" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-parameters/Cargo.toml b/manta-parameters/Cargo.toml index 52f1ec035..a68471d1d 100644 --- a/manta-parameters/Cargo.toml +++ b/manta-parameters/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-parameters" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-pay/Cargo.toml b/manta-pay/Cargo.toml index 7c78a99ea..f15aca1aa 100644 --- a/manta-pay/Cargo.toml +++ b/manta-pay/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-pay" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-trusted-setup/Cargo.toml b/manta-trusted-setup/Cargo.toml index 10db5245b..260658d41 100644 --- a/manta-trusted-setup/Cargo.toml +++ b/manta-trusted-setup/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-trusted-setup" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md" diff --git a/manta-util/Cargo.toml b/manta-util/Cargo.toml index 64ce45291..1f0cd4767 100644 --- a/manta-util/Cargo.toml +++ b/manta-util/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "manta-util" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Manta Network "] readme = "README.md"