diff --git a/docs/overview.md b/docs/overview.md index 9954fe6c6f..6e7e674b5f 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -31,10 +31,10 @@ If this is the intended way of usage, take a look at the [`pallet-ethereum`](../ An Ethereum-based blockchain can use the pre-block feeding strategy to migrate to Substrate. In the post-block generation model, the Ethereum block is generated *after* runtime execution. -In the pre-block feeding model, the Ethereum block is feeded in *before* runtime execution. +In the pre-block feeding model, the Ethereum block is fed in *before* runtime execution. A blockchain can first use pre-block feeding with empty extrinsic requirement. -In this way, because no other external information is feeded, combined with a suitable consensus engine, one Ethereum block will have an exact corresponding Substrate block. +In this way, because no other external information is fed, combined with a suitable consensus engine, one Ethereum block will have an exact corresponding Substrate block. This is called the [wrapper block](https://corepaper.org/substrate/wrapper/) strategy, and it allows Frontier to function as a normal Ethereum client. With a sufficient number of the network running a Frontier node, the blockchain can then initiate a hard fork, allowing extrinsic to be added in. diff --git a/frame/evm/precompile/bls12377/src/lib.rs b/frame/evm/precompile/bls12377/src/lib.rs index 9d7700b0ed..23c1c2a707 100644 --- a/frame/evm/precompile/bls12377/src/lib.rs +++ b/frame/evm/precompile/bls12377/src/lib.rs @@ -590,7 +590,7 @@ impl Bls12377MapG1 { impl Precompile for Bls12377MapG1 { /// Implements EIP-2539 Map_To_G1 precompile. - /// > Field-to-curve call expects `64` bytes an an input that is interpreted as a an element of the base field. + /// > Field-to-curve call expects `64` bytes an input that is interpreted as an element of the base field. /// > Output of this call is `128` bytes and is G1 point following respective encoding rules. fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult { handle.record_cost(Bls12377MapG1::GAS_COST)?; @@ -629,7 +629,7 @@ impl Bls12377MapG2 { impl Precompile for Bls12377MapG2 { /// Implements EIP-2539 Map_FP2_TO_G2 precompile logic. - /// > Field-to-curve call expects `128` bytes an an input that is interpreted as a an element of the quadratic extension field. + /// > Field-to-curve call expects `128` bytes an input that is interpreted as an element of the quadratic extension field. /// > Output of this call is `256` bytes and is G2 point following respective encoding rules. fn execute(handle: &mut impl PrecompileHandle) -> PrecompileResult { handle.record_cost(Bls12377MapG2::GAS_COST)?; diff --git a/precompiles/src/solidity/codec/mod.rs b/precompiles/src/solidity/codec/mod.rs index ae49888a1f..52384a67b3 100644 --- a/precompiles/src/solidity/codec/mod.rs +++ b/precompiles/src/solidity/codec/mod.rs @@ -37,7 +37,7 @@ pub use native::{Address, BoundedVec}; // derive macro pub use precompile_utils_macro::Codec; -/// Data that can be encoded/encoded followiong the Solidity ABI Specification. +/// Data that can be encoded/encoded following the Solidity ABI Specification. pub trait Codec: Sized { fn read(reader: &mut Reader) -> MayRevert; fn write(writer: &mut Writer, value: Self); diff --git a/precompiles/src/solidity/codec/native.rs b/precompiles/src/solidity/codec/native.rs index c83eed4d46..001e8314b4 100644 --- a/precompiles/src/solidity/codec/native.rs +++ b/precompiles/src/solidity/codec/native.rs @@ -322,7 +322,7 @@ impl> Codec for BoundedVec { for inner in value { // Any offset in items are relative to the start of the item instead of the - // start of the array. However if there is offseted data it must but appended after + // start of the array. However if there is offsetted data it must but appended after // all items (offsets) are written. We thus need to rely on `compute_offsets` to do // that, and must store a "shift" to correct the offsets. let shift = inner_writer.data.len();