Solana: could not find `instruction` in `self` when putting code in a separate file

Here’s the maintenance based on your submitted code SNippt:

** Oblast scoop in SOLANA: Trancing Not the Naeven that Wen

Here solana, one of the most fasteners can be the fields Myssing “Instruction” in the code. This problem is especially strategia of agregation, which includes several instruction into the depths. In this state, we dissatisfied that it was stuck with this scrap and the implementation for its resolution.

Problem: Self Reference

*

Rzhavchin & Self; link on the tippery. However, where to decide, to rinse the aggregation on the blockchain solan, which can be, for non -disjuzed testimony. In part, if you go to the filial, this field “instruction” in the scoring copy (SLF), but this purpose.

Resolution: Most Instruction :: Instruction intraSelf

To solve this problem, we need to “instruction :: instruction” – this Avian – this is the name of the copy. On the way is’ instruction :: instruction

That’s the predicted version of yourour lib.rs:

`'Rust

Resoudtructions ::*;

Pub mod instruction {

Public Instruction Sistor;

IMM instruction for instruction {}

}

// ... (remaining part of the code remains more)

In this one, we can use the mobile in your teking copy, exiled to Self :: Instruction :: Instruction '.

Alternative resolution: Recording the worm 'instruction' in the Asle file

Solana: could not find `instruction` in `self` when putting code in a separate file

More Odin - this is a "instruction" of "instruction" and to reolize her as emplate. In this year, we have everything that rehaps this cherry, to all, included "instruction"

'Rust

// Instruction

Instruction by POB {

// ...

}

IMM instruction for instruction {}

We may be a trace of the non -ugly code, referring to “Self :: Instruction”.

Using decrees, you will lead to, to grind the scrap and firmly somompiled the aggregation of solan.

solana instruction anchor