From 1102fc7bc928f77ef22ee9b0c991ee782cd2d5f9 Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Wed, 17 Jan 2024 01:38:58 +0000 Subject: [PATCH 1/3] rpcmethods --- subxt/src/backend/unstable/rpc_methods.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/src/backend/unstable/rpc_methods.rs b/subxt/src/backend/unstable/rpc_methods.rs index ca1a38691b..331cb5459b 100644 --- a/subxt/src/backend/unstable/rpc_methods.rs +++ b/subxt/src/backend/unstable/rpc_methods.rs @@ -542,7 +542,7 @@ pub enum StorageResultType { ClosestDescendantMerkleValue(Bytes), } -/// The method respose of `chainHead_body`, `chainHead_call` and `chainHead_storage`. +/// The method response of `chainHead_body`, `chainHead_call` and `chainHead_storage`. #[derive(Debug, Clone, PartialEq, Eq, Deserialize)] #[serde(rename_all = "camelCase")] #[serde(tag = "result")] From 34d7bbc9ec51e49783731345cb1c9e09076454dd Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Wed, 17 Jan 2024 01:39:19 +0000 Subject: [PATCH 2/3] followstr --- subxt/src/backend/unstable/follow_stream_driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subxt/src/backend/unstable/follow_stream_driver.rs b/subxt/src/backend/unstable/follow_stream_driver.rs index 028065f941..627fb07d4f 100644 --- a/subxt/src/backend/unstable/follow_stream_driver.rs +++ b/subxt/src/backend/unstable/follow_stream_driver.rs @@ -240,7 +240,7 @@ impl Shared { } } - // Keep our buffer of ready/block events uptodate: + // Keep our buffer of ready/block events up-to-date: match item { FollowStreamMsg::Ready(sub_id) => { // Set new subscription ID when it comes in. From f771a92bbb276e18165aa5684d31592f810ab564 Mon Sep 17 00:00:00 2001 From: Pan chao <152830401+Pan-chao@users.noreply.github.com> Date: Wed, 17 Jan 2024 01:40:17 +0000 Subject: [PATCH 3/3] mod and else --- subxt/src/backend/mod.rs | 2 +- subxt/src/backend/unstable/follow_stream_unpin.rs | 6 +++--- subxt/src/config/default_extrinsic_params.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/subxt/src/backend/mod.rs b/subxt/src/backend/mod.rs index 3fb9782c53..3db06818b3 100644 --- a/subxt/src/backend/mod.rs +++ b/subxt/src/backend/mod.rs @@ -310,7 +310,7 @@ pub enum TransactionStatus { /// Number of peers it's been broadcast to. num_peers: u32, }, - /// Transaciton is no longer in a best block. + /// Transaction is no longer in a best block. NoLongerInBestBlock, /// Transaction has been included in block with given hash. InBestBlock { diff --git a/subxt/src/backend/unstable/follow_stream_unpin.rs b/subxt/src/backend/unstable/follow_stream_unpin.rs index 7b54f642dc..0aaccaae42 100644 --- a/subxt/src/backend/unstable/follow_stream_unpin.rs +++ b/subxt/src/backend/unstable/follow_stream_unpin.rs @@ -195,7 +195,7 @@ impl Stream for FollowStreamUnpin { FollowStreamMsg::Event(FollowEvent::Stop) } - // These events aren't intresting; we just forward them on: + // These events aren't interesting; we just forward them on: FollowStreamMsg::Event(FollowEvent::OperationBodyDone(details)) => { FollowStreamMsg::Event(FollowEvent::OperationBodyDone(details)) } @@ -326,7 +326,7 @@ impl FollowStreamUnpin { // Any new futures pushed above need polling to start. We could // just wait for the next stream event, but let's wake the task to - // have it polled sooner, just incase it's slow to receive things. + // have it polled sooner, just in case it's slow to receive things. waker.wake_by_ref(); } } @@ -586,7 +586,7 @@ mod test { .expect("unpin call should have happened"); assert_eq!(hash, H256::from_low_u64_le(1)); - // Confirm that 0 and 2 are still pinned and that 1 isnt. + // Confirm that 0 and 2 are still pinned and that 1 isn't. assert!(!follow_unpin.is_pinned(&H256::from_low_u64_le(1))); assert!(follow_unpin.is_pinned(&H256::from_low_u64_le(0))); assert!(follow_unpin.is_pinned(&H256::from_low_u64_le(2))); diff --git a/subxt/src/config/default_extrinsic_params.rs b/subxt/src/config/default_extrinsic_params.rs index 880591e7f0..dce83853bf 100644 --- a/subxt/src/config/default_extrinsic_params.rs +++ b/subxt/src/config/default_extrinsic_params.rs @@ -100,7 +100,7 @@ impl DefaultExtrinsicParamsBuilder { self } - /// Provide a tip to the block auther using the token denominated by the `asset_id` provided. This + /// Provide a tip to the block author using the token denominated by the `asset_id` provided. This /// is not applicable on chains which don't use the `ChargeAssetTxPayment` signed extension; in this /// case, no tip will be given. pub fn tip_of(mut self, tip: u128, asset_id: T::AssetId) -> Self {