LNP-BP / LNP-BP/nodes

an argument of type `std::option::Option<Reveal>` is missing

Open
#18 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
17
Forks
7
PR merge metrics
No merged PRs in 30d

Description

A second warning comes by after running ./install.sh
Compiling rgb-cli v0.8.0-rc.1
error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/rgbalice/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb-cli-0.8.0-rc.1/src/command.rs:279:41
|
279 | let status = client.consume_transfer(consignment, force, progress)?;
| ^^^^^^^^^^^^^^^^ -------- an argument of type `std::option::Option` is missing
|
note: associated function defined here
--> /home/rgbalice/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb_rpc-0.8.1/src/client.rs:260:12
|
260 | pub fn consume_transfer(
| ^^^^^^^^^^^^^^^^
help: provide the argument
|
279 | let status = client.consume_transfer(consignment, force, /* std::option::Option */, progress)?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0061`.
error: could not compile `rgb-cli` due to previous error
error: failed to compile `rgb-cli v0.8.0-rc.1`, intermediate artifacts can be found at `/tmp/cargo-install6AIY4I`
Downloaded storm-cli v0.8.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ./install.sh and inspect the call at rgb-cli/src/command.rs:279 alongside the consume_transfer definition at rgb_rpc/src/client.rs:260. Verify the required argument order and run the installation again; done means rgb-cli compiles without E0061.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.