mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Test the processor's Substrate signer
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user