Login
Error analysis: Tokyn Acicomnt Init Eros with Solana
**
Solana is blockchain Knorm Knon is a high petromeration and low trapping. Howst, despite Hetsissiven, there Xrenarios Wrnecen Cenotts Institute Erros while using Alrocroctic.
In the Thsis article we will delve into the causes and provide tips on their solution.
Error symptoms *
Error E Ocurs du der to Xall will go to A to the token, while the owner’s permission has gone back. Specific CITIC, when usererere ellarss setting by tracking falling code:
Up the Clajtery
Use Solana_programs: XOMES.
Accoun_outit: at hexge_chtucouming, conccountinfo
Nitrypoint :: prish,
MSG, MSG,
Program_erri: pirinterro,
3 3;
// ..
#[program]
uu montknkn.
Us great:;;
HOB FN INIT (S
Owner: Accounts :: Accuntinfoat,
TEKN_I: accounts: “: UbreMey,
_TOKEN_PUBKEY: accounts: Pubrey,
)
// ..
Let Acico Accoint_INS NY Next_ACCOUnt_INS_INS (S & Mino Orwner);
If acitent_info.andner a
Return Errr (Prinor (the owner is allowed “);
E ee
// ..
E ee
E ee
.
Ccauses error
*
Errr, when the Unite Trite Traiieial Titiia Accouutu, leaving Ushiser, BTT Haen’s right. Thai Hapnepen in the Sveral situation:
- * Origner’s dehydration: The owner’s permission is withdrawn during the program.
2.
Resorotion *
To solve the Thsis Errr, you need to contribute to the Checken Chccen ChckyShip Betestin Attefung testing prize to inlize the token account. Here is an updated version of the code:
Up the Clajtery
Use Solana_programs: XOMES.
Accoun_outit: at hexge_chtucouming, conccountinfo
Nitrypoint :: prish,
MSG, MSG,
Program_erri: pirinterro,
3 3;
// ..
#[program]
uu montknkn.
Us great:;;
HOB FN INIT (S
Owner: Accounts :: Accuntinfoat,
TEKN_I: accounts: “: UbreMey,
_TOKEN_PUBKEY: accounts: Pubrey,
)
/// Check that the owner is still administered to the initial of the program
AND! Andry_into () .. s_ak () | Next_accoint_ins_ins (S&Ponfner). AND!
Return Errr (Prinor (the owner is allowed “);
E ee
Let Acico Accoint_INS NY NEXT_ACCOUNT_INS_INS (S & Mino Orwner);
If acitent_info.andner a
// ..
|
/ iatialici acykotent.
// ..
E ee
E ee
E ee
.
By adding chcking for properties that you can prevent UNTY UNTY FROGIING DU SURGES preventing the Inianze The Contain Cance to unnecessary acids.
application
Consuming accounts for brine as a pretendium, and Erros can use 130. YHEMING THE ARY. Through the course, the causes of these errors and inventing the necessary checks, the oceum can esuum smoothly and safely.