Skip to content

Commit ccfcc66

Browse files
committed
fix(codama): update remaining SetArbiter hardcoded escrow_program default
1 parent 8e50489 commit ccfcc66

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

idl/escrow_program.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,10 +2398,10 @@
23982398
"name": "eventAuthority"
23992399
},
24002400
{
2401-
"defaultValue": {
2402-
"kind": "publicKeyValueNode",
2403-
"publicKey": "Escrowae7RaUfNn4oEZHywMXE5zWzYCXenwrCDaEoifg"
2404-
},
2401+
"docs": [
2402+
"Escrow Program ID (this program)"
2403+
],
2404+
"isOptional": true,
24052405
"isSigner": false,
24062406
"isWritable": false,
24072407
"kind": "instructionAccountNode",

program/src/instructions/definition.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,7 @@ pub enum EscrowProgramInstruction {
281281
name = "event_authority",
282282
default_value = pda("event_authority", [])
283283
))]
284-
#[codama(account(
285-
name = "escrow_program",
286-
default_value = public_key("Escrowae7RaUfNn4oEZHywMXE5zWzYCXenwrCDaEoifg")
287-
))]
284+
#[codama(account(name = "escrow_program", optional, docs = "Escrow Program ID (this program)"))]
288285
SetArbiter {
289286
/// Bump for extensions PDA
290287
#[codama(default_value = account_bump("extensions"))]

0 commit comments

Comments
 (0)