Skip to content

Commit

Permalink
Merge pull request #226 from nomic-io/nbtc-declare-cmd
Browse files Browse the repository at this point in the history
Declare with nBTC
  • Loading branch information
mappum authored Oct 13, 2023
2 parents 6f5b99c + fae58f2 commit b21f1c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/bin/nomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,19 @@ impl DeclareCmd {
min_self_delegation: self.min_self_delegation.into(),
};

// declare with nBTC if amount is 0
if self.amount == 0 {
return Ok(self
.config
.client()
.with_wallet(wallet())
.call(
|app| build_call!(app.declare_with_nbtc(declaration.clone())),
|app| build_call!(app.app_noop()),
)
.await?);
}

Ok(self
.config
.client()
Expand Down

0 comments on commit b21f1c0

Please sign in to comment.