11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -150,21 +150,19 @@ export function getStoreInstruction<
150150 ) ;
151151
152152 const getAccountMeta = getAccountMetaFactory ( programAddress , 'omitted' ) ;
153- const instruction = {
153+ return Object . freeze ( {
154154 accounts : [ getAccountMeta ( accounts . configAccount ) , ...remainingAccounts ] ,
155- programAddress,
156155 data : getStoreInstructionDataEncoder ( ) . encode (
157156 args as StoreInstructionDataArgs
158157 ) ,
158+ programAddress,
159159 } as StoreInstruction <
160160 TProgramAddress ,
161161 ( typeof input ) [ 'configAccount' ] extends TransactionSigner < TAccountConfigAccount >
162162 ? WritableSignerAccount < TAccountConfigAccount > &
163163 AccountSignerMeta < TAccountConfigAccount >
164164 : TAccountConfigAccount
165- > ;
166-
167- return instruction ;
165+ > ) ;
168166}
169167
170168export type ParsedStoreInstruction <
@@ -178,7 +176,6 @@ export type ParsedStoreInstruction<
178176 * Must sign during the first call to `store` to initialize the account,
179177 * or if no signers are configured in the config data.
180178 */
181-
182179 configAccount : TAccountMetas [ 0 ] ;
183180 } ;
184181 data : StoreInstructionData ;
@@ -204,9 +201,7 @@ export function parseStoreInstruction<
204201 } ;
205202 return {
206203 programAddress : instruction . programAddress ,
207- accounts : {
208- configAccount : getNextAccount ( ) ,
209- } ,
204+ accounts : { configAccount : getNextAccount ( ) } ,
210205 data : getStoreInstructionDataDecoder ( ) . decode ( instruction . data ) ,
211206 } ;
212207}
0 commit comments