Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Jul 17, 2023
1 parent 62287b4 commit 747ca36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use crate::{
error::Result,
event_filter::{FilterEvents, MockEvents},
indirect_calls::{InvokeArgs, ShiedFundsArgs},
indirect_calls::{InvokeArgs, ShieldFundsArgs},
parentchain_parser::ParseExtrinsic,
IndirectDispatch, IndirectExecutor,
};
Expand Down Expand Up @@ -128,7 +128,7 @@ where
let call_args = &mut &xt.call_args[..];

if index == metadata.shield_funds_call_indexes().ok()? {
let args = decode_and_log_error::<ShiedFundsArgs>(call_args)?;
let args = decode_and_log_error::<ShieldFundsArgs>(call_args)?;
Some(IndirectCall::ShieldFunds(args))
} else if index == metadata.invoke_call_indexes().ok()? {
let args = decode_and_log_error::<InvokeArgs>(call_args)?;
Expand All @@ -145,7 +145,7 @@ where
/// can implemeent their own indirect call there.
#[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)]
pub enum IndirectCall {
ShieldFunds(ShiedFundsArgs),
ShieldFunds(ShieldFundsArgs),
Invoke(InvokeArgs),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ mod call_worker;
mod shield_funds;

pub use call_worker::InvokeArgs;
pub use shield_funds::ShiedFundsArgs;
pub use shield_funds::ShieldFundsArgs;
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ use std::vec::Vec;

/// Arguments of the Integritee-Parachain's shield fund dispatchable.
#[derive(Debug, Clone, Encode, Decode, Eq, PartialEq)]
pub struct ShiedFundsArgs {
pub struct ShieldFundsArgs {
shard: ShardIdentifier,
account_encrypted: Vec<u8>,
amount: Balance,
shard: ShardIdentifier,
}

impl<Executor: IndirectExecutor> IndirectDispatch<Executor> for ShiedFundsArgs {
impl<Executor: IndirectExecutor> IndirectDispatch<Executor> for ShieldFundsArgs {
fn dispatch(&self, executor: &Executor) -> Result<()> {
info!("Found ShieldFunds extrinsic in block: \nAccount Encrypted {:?} \nAmount: {} \nShard: {}",
self.account_encrypted, self.amount, bs58::encode(self.shard.encode()).into_string());
Expand Down

0 comments on commit 747ca36

Please sign in to comment.