mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 06:59:24 +00:00
Dispatch InInstruction as expected
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
use borsh::{BorshSerialize, BorshDeserialize};
|
||||
|
||||
use serai_primitives::{
|
||||
BlockHash, network_id::ExternalNetworkId, validator_sets::Session, instructions::SignedBatch,
|
||||
BlockHash, network_id::ExternalNetworkId, validator_sets::Session, address::SeraiAddress,
|
||||
instructions::SignedBatch,
|
||||
};
|
||||
|
||||
/// The address used for executing `InInstruction`s.
|
||||
pub fn address() -> SeraiAddress {
|
||||
SeraiAddress::system(borsh::to_vec(b"InInstructions").unwrap())
|
||||
}
|
||||
|
||||
/// A call to `InInstruction`s.
|
||||
#[derive(Clone, PartialEq, Eq, Debug, BorshSerialize, BorshDeserialize)]
|
||||
pub enum Call {
|
||||
|
||||
Reference in New Issue
Block a user