Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jun 27, 2023
1 parent acb949b commit d878ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/examples/client/block/02_block_custom_parents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use iota_sdk::{
client::{Client, Result},
types::block::parent::StrongParents,
types::block::parent::Parents,
};

#[tokio::main]
Expand All @@ -27,7 +27,7 @@ async fn main() -> Result<()> {

// Create and send the block with custom parents.
let block = client
.finish_block_builder(Some(StrongParents::from_vec(parents)?), None)
.finish_block_builder(Some(Parents::from_vec(parents)?), None)
.await?;

println!("{block:#?}");
Expand Down

0 comments on commit d878ff2

Please sign in to comment.