Skip to content

Commit 80ddade

Browse files
0xLuccanhussein11
andauthored
Apply suggestions from code review
Co-authored-by: Nicolás Hussein <[email protected]>
1 parent bd29e98 commit 80ddade

File tree

1 file changed

+2
-2
lines changed
  • .snippets/code/develop/toolkit/api-libraries/subxt

1 file changed

+2
-2
lines changed

.snippets/code/develop/toolkit/api-libraries/subxt/subxt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
1515
// Initialize the Subxt client for interacting with the blockchain.
1616
let api = OnlineClient::<PolkadotConfig>::from_url(NODE_URL).await?;
1717

18-
// A query to obtain some contant:
18+
// A query to obtain some constant.
1919
let constant_query = polkadot::constants().balances().existential_deposit();
2020

21-
// Obtain the value:
21+
// Obtain the value.
2222
let value = api.constants().at(&constant_query)?;
2323

2424
println!("Existential deposit: {:?}", value);

0 commit comments

Comments
 (0)