Test the processor's Substrate signer

This commit is contained in:
Luke Parker
2023-04-10 12:48:48 -04:00
parent d323fc8b7b
commit 9e78c8fc9e
4 changed files with 146 additions and 2 deletions

View File

@@ -83,6 +83,9 @@ pub mod pallet {
block: batch.block,
});
for (i, instruction) in batch.instructions.drain(..).enumerate() {
// TODO: Check this balance's coin belongs to this network
// If they don't, the validator set should be completely slashed, without question
if Self::execute(instruction).is_err() {
Self::deposit_event(Event::InstructionFailure {
network: batch.network,

View File

@@ -31,8 +31,8 @@ pub enum Application {
#[derive(Clone, PartialEq, Eq, Debug, Encode, Decode, MaxEncodedLen, TypeInfo)]
#[cfg_attr(feature = "std", derive(Zeroize, Serialize, Deserialize))]
pub struct ApplicationCall {
application: Application,
data: Data,
pub application: Application,
pub data: Data,
}
#[derive(Clone, PartialEq, Eq, Debug, Encode, Decode, MaxEncodedLen, TypeInfo)]