Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Mar 12, 2024
1 parent bf306e8 commit cf6b550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions sdk/examples/client/block/02_block_custom_parents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

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

client.post_block(&block).await?;

println!(
"Block with custom parents sent: {}/block/{}",
std::env::var("EXPLORER_URL").unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/client/api/block_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Client {
let issuance = self.get_issuance().await?;

let issuing_time = {
let issuing_time = std::time::SystemTime::now()
let issuing_time = instant::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.expect("Time went backwards")
.as_nanos() as u64;
Expand Down

0 comments on commit cf6b550

Please sign in to comment.