Skip to content

Commit

Permalink
tighten rent account regex
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed Apr 16, 2024
1 parent 092bc77 commit 1d30b29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/visitors/setInstructionAccountDefaultValuesVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ export const DEFAULT_INSTRUCTION_ACCOUNT_DEFAULT_RULES: InstructionAccountDefaul
ignoreIfOptional: true,
},
{
account: /^rent|rentSysvar|sysvarRent$/,
account: /^rent$|rentSysvar|sysvarRent$/,
defaultValue: publicKeyValueNode(
'SysvarRent111111111111111111111111111111111'
),
'SysvarRent111111111111111111111111111111111'),
ignoreIfOptional: true,
},
{
Expand Down

0 comments on commit 1d30b29

Please sign in to comment.