Skip to content

Commit 62211b3

Browse files
authored
Use programId override from PdaValueNode when set (#62)
1 parent 287603f commit 62211b3

File tree

5 files changed

+216
-126
lines changed

5 files changed

+216
-126
lines changed

.changeset/wicked-onions-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@codama/renderers-js': minor
3+
---
4+
5+
Use the programId attribute of the PdaValueNode when provided to render default values. This enables PDA derivations to set the program address to another account in the same instruction.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
"test:unit": "vitest run"
5151
},
5252
"dependencies": {
53-
"@codama/errors": "^1.3.7",
54-
"@codama/nodes": "^1.3.7",
55-
"@codama/renderers-core": "^1.2.2",
56-
"@codama/visitors-core": "^1.3.7",
53+
"@codama/errors": "^1.4.0",
54+
"@codama/nodes": "^1.4.0",
55+
"@codama/renderers-core": "^1.2.4",
56+
"@codama/visitors-core": "^1.4.0",
5757
"@solana/codecs-strings": "^5.0.0",
5858
"prettier": "^3.6.2"
5959
},
6060
"devDependencies": {
61-
"@codama/nodes-from-anchor": "^1.2.9",
61+
"@codama/nodes-from-anchor": "^1.3.0",
6262
"@changesets/changelog-github": "^0.5.1",
6363
"@changesets/cli": "^2.29.7",
6464
"@solana/eslint-config-solana": "^5.0.0",

pnpm-lock.yaml

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)