Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkywayPirate committed Oct 25, 2023
1 parent 155594d commit 20799f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Unreleased changes

- Update the `create-initial-accounts` example to use `ClientV2`.

## 3.1.0

- Add a `commission_rates` field to `CurrentPaydayBakerPoolStatus` which yields the commission rates
Expand Down
11 changes: 3 additions & 8 deletions examples/create-initial-accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use concordium_rust_sdk::{
},
},
types::transactions::{BlockItem, Payload},
v2,
v2::{self, BlockIdentifier},
};
use id::{
constants::AttributeKind,
Expand Down Expand Up @@ -66,15 +66,10 @@ async fn main() -> anyhow::Result<()> {
let mut client = v2::Client::new(app.endpoint.clone())
.await
.context("cannot connect to node")?;
let last_final = client
.get_consensus_info()
.await
.context("Could not get consensus status")?
.last_finalized_block;
let global_context = client
.get_cryptographic_parameters(&last_final)
.get_cryptographic_parameters(&BlockIdentifier::LastFinal)
.await
.context("Could not get cryptograhic context")?
.context("Could not get cryptographic context")?
.response;

// Create a channel between the task signing and the task sending transactions.
Expand Down

0 comments on commit 20799f6

Please sign in to comment.