I am trying to invoke an instruction and since it is not a cross-program, how can I achieve that without using CPI?
Think like that, I have some instructions on my program asset_create, asset_delete and asset_split. Each instruction has its own responsibility, that is they have different structs. However, in some case, I want to invoke asset_create instruction into my asset_split one.
impl <'info> AssetSplit<'info>{
pub fn process(&mut self) -> Result<()> {
// some logic related to the split
// after split, I want to trigger `asset_create`
asset_create()
}
}