From 2bf782581ba6a2bd02827881a5f3430c00d2e426 Mon Sep 17 00:00:00 2001 From: Snoppy Date: Fri, 19 Apr 2024 20:50:04 +0800 Subject: [PATCH] chore: fix typos and link broken (#1541) Signed-off-by: snoppy --- README.md | 2 +- subxt/src/backend/mod.rs | 2 +- subxt/src/backend/unstable/follow_stream_unpin.rs | 2 +- subxt/src/backend/unstable/mod.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9a0240c363..35dbacfe5e 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Please add your project to this list via a PR. - [tidext](https://github.com/tidelabs/tidext) Tidechain client with Stronghold signer. - [staking-miner-v2](https://github.com/paritytech/staking-miner-v2) Submit NPos election solutions and get rewards. - [polkadot-introspector](https://github.com/paritytech/polkadot-introspector) Tools for monitoring Polkadot nodes. -- [ink!](https://github.com/paritytech/ink) Smart contract language that uses `subxt` for allowing developers to conduct [End-to-End testing](https://use.ink/basics/contract-testing#end-to-end-e2e-tests) of their contracts. +- [ink!](https://github.com/paritytech/ink) Smart contract language that uses `subxt` for allowing developers to conduct [End-to-End testing](https://use.ink/basics/contract-testing/end-to-end-e2e-testing) of their contracts. - [Chainflip](https://github.com/chainflip-io/chainflip-backend) A decentralised exchange for native cross-chain swaps. **Alternatives** diff --git a/subxt/src/backend/mod.rs b/subxt/src/backend/mod.rs index 1dcac2d35c..63b2bee624 100644 --- a/subxt/src/backend/mod.rs +++ b/subxt/src/backend/mod.rs @@ -103,7 +103,7 @@ pub trait Backend: sealed::Sealed + Send + Sync + 'static { ) -> Result, Error>; } -/// helpeful utility methods derived from those provided on [`Backend`] +/// helpful utility methods derived from those provided on [`Backend`] #[async_trait] pub trait BackendExt: Backend { /// Fetch a single value from storage. diff --git a/subxt/src/backend/unstable/follow_stream_unpin.rs b/subxt/src/backend/unstable/follow_stream_unpin.rs index d22e241712..cb12c93b28 100644 --- a/subxt/src/backend/unstable/follow_stream_unpin.rs +++ b/subxt/src/backend/unstable/follow_stream_unpin.rs @@ -394,7 +394,7 @@ type UnpinFlags = Arc>>; #[derive(Debug)] struct PinnedDetails { - /// Realtively speaking, how old is the block? When we start following + /// Relatively speaking, how old is the block? When we start following /// blocks, the first finalized block gets an age of 0, the second an age /// of 1 and so on. rel_block_age: usize, diff --git a/subxt/src/backend/unstable/mod.rs b/subxt/src/backend/unstable/mod.rs index 4c84d9dd4e..95f75d348c 100644 --- a/subxt/src/backend/unstable/mod.rs +++ b/subxt/src/backend/unstable/mod.rs @@ -545,7 +545,7 @@ impl Backend for UnstableBackend { } FollowEvent::Stop => { // If we get this event, we'll lose all of our existing pinned blocks and have a gap - // in which we may lose the finaliuzed block that the TX is in. For now, just error if + // in which we may lose the finalized block that the TX is in. For now, just error if // this happens, to prevent the case in which we never see a finalized block and wait // forever. return Poll::Ready(err_other("chainHead_follow emitted 'stop' event during transaction submission"));