File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
examples/sol-anchor-contract
programs/example-sol-anchor-contract/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11[programs .devnet ]
2- example_sol_anchor_contract = " BM8eAdE2JbN4HL2vPaZnbsxGH6TTVi11jFbz8t79hXKw "
2+ example_sol_anchor_contract = " 4ACQwuQt2ChnPRUV8KwuhVqJvEdusWd3i8JAngHDkp91 "
33
44[provider ]
55cluster = " devnet"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use anchor_lang::prelude::*;
33use solana_program:: account_info:: AccountInfo ;
44use pyth_sdk_solana:: load_price_feed_from_account_info;
55
6- declare_id ! ( "BM8eAdE2JbN4HL2vPaZnbsxGH6TTVi11jFbz8t79hXKw " ) ;
6+ declare_id ! ( "4ACQwuQt2ChnPRUV8KwuhVqJvEdusWd3i8JAngHDkp91 " ) ;
77
88#[ account]
99pub struct AdminConfig {
@@ -14,7 +14,7 @@ pub struct AdminConfig {
1414
1515#[ derive( Accounts ) ]
1616pub struct InitRequest < ' info > {
17- #[ account( address = * program_id) ]
17+ #[ account( address = * program_id @ ErrorCode :: Unauthorized ) ]
1818 pub program : Signer < ' info > ,
1919 #[ account( mut ) ]
2020 pub payer : Signer < ' info > ,
You can’t perform that action at this time.
0 commit comments