From 82ca8c21ce73868d34bedc855a49448f5650da6b Mon Sep 17 00:00:00 2001 From: Matt Suiche Date: Thu, 26 Sep 2024 18:50:09 +0400 Subject: [PATCH] Replace GasPrice with SubmitOptions in rust code example (#1730) --- developers/rust-client-tutorial.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/developers/rust-client-tutorial.md b/developers/rust-client-tutorial.md index 78a4f00b8b3..a8a5d9414b7 100644 --- a/developers/rust-client-tutorial.md +++ b/developers/rust-client-tutorial.md @@ -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)) @@ -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");