Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 9f933c4

Browse files
author
Sacha Lansky
authored
Fix typos (#13616)
1 parent 86731af commit 9f933c4

File tree

1 file changed

+5
-5
lines changed
  • frame/examples/offchain-worker/src

1 file changed

+5
-5
lines changed

frame/examples/offchain-worker/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub mod pallet {
166166
///
167167
/// By implementing `fn offchain_worker` you declare a new offchain worker.
168168
/// This function will be called when the node is fully synced and a new best block is
169-
/// succesfuly imported.
169+
/// successfully imported.
170170
/// Note that it's not guaranteed for offchain workers to run on EVERY block, there might
171171
/// be cases where some blocks are skipped, or for some the worker runs twice (re-orgs),
172172
/// so the code should be able to handle that.
@@ -224,7 +224,7 @@ pub mod pallet {
224224
/// The transaction needs to be signed (see `ensure_signed`) check, so that the caller
225225
/// pays a fee to execute it.
226226
/// This makes sure that it's not easy (or rather cheap) to attack the chain by submitting
227-
/// excesive transactions, but note that it doesn't ensure the price oracle is actually
227+
/// excessive transactions, but note that it doesn't ensure the price oracle is actually
228228
/// working and receives (and provides) meaningful data.
229229
/// This example is not focused on correctness of the oracle itself, but rather its
230230
/// purpose is to showcase offchain worker capabilities.
@@ -336,7 +336,7 @@ pub mod pallet {
336336

337337
/// Defines the block when next unsigned transaction will be accepted.
338338
///
339-
/// To prevent spam of unsigned (and unpayed!) transactions on the network,
339+
/// To prevent spam of unsigned (and unpaid!) transactions on the network,
340340
/// we only allow one transaction every `T::UnsignedInterval` blocks.
341341
/// This storage entry defines when new transaction is going to be accepted.
342342
#[pallet::storage]
@@ -570,12 +570,12 @@ impl<T: Config> Pallet<T> {
570570
fn fetch_price() -> Result<u32, http::Error> {
571571
// We want to keep the offchain worker execution time reasonable, so we set a hard-coded
572572
// deadline to 2s to complete the external call.
573-
// You can also wait idefinitely for the response, however you may still get a timeout
573+
// You can also wait indefinitely for the response, however you may still get a timeout
574574
// coming from the host machine.
575575
let deadline = sp_io::offchain::timestamp().add(Duration::from_millis(2_000));
576576
// Initiate an external HTTP GET request.
577577
// This is using high-level wrappers from `sp_runtime`, for the low-level calls that
578-
// you can find in `sp_io`. The API is trying to be similar to `reqwest`, but
578+
// you can find in `sp_io`. The API is trying to be similar to `request`, but
579579
// since we are running in a custom WASM execution environment we can't simply
580580
// import the library here.
581581
let request =

0 commit comments

Comments
 (0)