Skip to content

Commit

Permalink
Replace GasPrice with SubmitOptions in rust code example (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
msuiche authored Sep 26, 2024
1 parent 7a373e5 commit 82ca8c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions developers/rust-client-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ The [blob.GetAll](https://node-rpc-docs.celestia.org/#blob.GetAll) method takes

```rust
use celestia_rpc::{BlobClient, Client, HeaderClient, ShareClient};
use celestia_types::blob::GasPrice;
use celestia_types::{nmt::Namespace, Blob, ExtendedDataSquare};
use celestia_types::{nmt::Namespace, Blob, blob::SubmitOptions};

async fn submit_blob(url: &str, token: &str) {
let client = Client::new(url, Some(token))
Expand All @@ -52,7 +51,7 @@ async fn submit_blob(url: &str, token: &str) {

// submit the blob to the network
let height = client
.blob_submit(&[blob.clone()], GasPrice::default())
.blob_submit(&[blob.clone()], SubmitOptions::default())
.await
.expect("Failed submitting blob");

Expand Down

0 comments on commit 82ca8c2

Please sign in to comment.