LNP-BP / nodes

Complete LNP/BP protocol daemons suite
MIT License
18 stars 9 forks source link

Vec OutpointValue is not an iterator #17

Open Goosie opened 1 year ago

Goosie commented 1 year ago

Trying to make use of the contrub/install.sh The following warning comes by:

Compiling rgb20 v0.8.0-rc.4 error[E0599]: Vec<OutpointValue> is not an iterator --> /home/rgbalice/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb20-0.8.0-rc.4/src/create.rs:63:41 63 let issued_supply = allocations.sum(); ^^^ Vec<OutpointValue> is not an iterator; try calling .into_iter() or .iter()

= note: the following trait bounds were not satisfied: Vec<OutpointValue>: Iterator which is required by &mut Vec<OutpointValue>: Iterator [OutpointValue]: Iterator which is required by &mut [OutpointValue]: Iterator

error[E0599]: no method named into_assignments found for struct BTreeMap in the current scope --> /home/rgbalice/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb20-0.8.0-rc.4/src/create.rs:81:27 | 81 | inflation.into_assignments(), | ^^^^^^^^^^^^^^^^ method not found in BTreeMap<OutPoint, u64>

For more information about this error, try rustc --explain E0599. error: could not compile rgb20 due to 2 previous errors error: failed to compile rgb20 v0.8.0-rc.4, intermediate artifacts can be found at /tmp/cargo-install8qHU5P Downloaded bp-cli v0.8.0-alpha.2

crisdut commented 1 year ago

Hi @Goosie,

Here: https://github.com/LNP-BP/nodes/pull/20

I updated all libs to correct version.

Please, try again.

dr-orlovsky commented 1 year ago

@Goosie was the issue fixed by #20? I just merged it