mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 03:01:07 +00:00
Convert all UK spelling to US (#2138)
* all the ise * forgot a misspelling * a few more replacements * bump impl * rollback and fixes * bump impl again * Add aliases for RPC * Update on_demand.rs
This commit is contained in:
@@ -167,9 +167,9 @@ pub fn run_tests(mut input: &[u8]) -> Vec<u8> {
|
||||
|
||||
print("run_tests...");
|
||||
let block = Block::decode(&mut input).unwrap();
|
||||
print("deserialised block.");
|
||||
print("deserialized block.");
|
||||
let stxs = block.extrinsics.iter().map(Encode::encode).collect::<Vec<_>>();
|
||||
print("reserialised transactions.");
|
||||
print("reserialized transactions.");
|
||||
[stxs.len() as u8].encode()
|
||||
}
|
||||
|
||||
@@ -297,8 +297,8 @@ cfg_if! {
|
||||
system::execute_block(block)
|
||||
}
|
||||
|
||||
fn initialise_block(header: &<Block as BlockT>::Header) {
|
||||
system::initialise_block(header)
|
||||
fn initialize_block(header: &<Block as BlockT>::Header) {
|
||||
system::initialize_block(header)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,8 +319,8 @@ cfg_if! {
|
||||
system::execute_transaction(extrinsic)
|
||||
}
|
||||
|
||||
fn finalise_block() -> <Block as BlockT>::Header {
|
||||
system::finalise_block()
|
||||
fn finalize_block() -> <Block as BlockT>::Header {
|
||||
system::finalize_block()
|
||||
}
|
||||
|
||||
fn inherent_extrinsics(_data: InherentData) -> Vec<<Block as BlockT>::Extrinsic> {
|
||||
@@ -402,8 +402,8 @@ cfg_if! {
|
||||
system::execute_block(block)
|
||||
}
|
||||
|
||||
fn initialise_block(header: &<Block as BlockT>::Header) {
|
||||
system::initialise_block(header)
|
||||
fn initialize_block(header: &<Block as BlockT>::Header) {
|
||||
system::initialize_block(header)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -424,8 +424,8 @@ cfg_if! {
|
||||
system::execute_transaction(extrinsic)
|
||||
}
|
||||
|
||||
fn finalise_block() -> <Block as BlockT>::Header {
|
||||
system::finalise_block()
|
||||
fn finalize_block() -> <Block as BlockT>::Header {
|
||||
system::finalize_block()
|
||||
}
|
||||
|
||||
fn inherent_extrinsics(_data: InherentData) -> Vec<<Block as BlockT>::Extrinsic> {
|
||||
|
||||
@@ -63,7 +63,7 @@ pub fn authorities() -> Vec<AuthorityId> {
|
||||
.collect()
|
||||
}
|
||||
|
||||
pub fn initialise_block(header: &Header) {
|
||||
pub fn initialize_block(header: &Header) {
|
||||
// populate environment.
|
||||
<Number>::put(&header.number);
|
||||
<ParentHash>::put(&header.parent_hash);
|
||||
@@ -201,8 +201,8 @@ pub fn execute_transaction(utx: Extrinsic) -> ApplyResult {
|
||||
result
|
||||
}
|
||||
|
||||
/// Finalise the block.
|
||||
pub fn finalise_block() -> Header {
|
||||
/// Finalize the block.
|
||||
pub fn finalize_block() -> Header {
|
||||
let extrinsic_index: u32 = storage::unhashed::take(well_known_keys::EXTRINSIC_INDEX).unwrap();
|
||||
let txs: Vec<_> = (0..extrinsic_index).map(ExtrinsicData::take).collect();
|
||||
let txs = txs.iter().map(Vec::as_slice).collect::<Vec<_>>();
|
||||
|
||||
Reference in New Issue
Block a user