Skip to content

Commit

Permalink
[github workflow] update pnpm version to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Nov 29, 2024
1 parent fea572b commit b9c4a1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
node-version: [16]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 7
version: 8
- name: Install, build and test
timeout-minutes: 5
run: |
Expand Down
6 changes: 5 additions & 1 deletion src/util/anchor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ export async function getParsedStakeAccountInfo(
)
}

if (!stakeAccountInfo.data || stakeAccountInfo.data instanceof Buffer) {
if (
!stakeAccountInfo.data ||
stakeAccountInfo.data instanceof Buffer ||
!('parsed' in stakeAccountInfo.data)
) {
throw new Error('Failed to parse the stake account data')
}

Expand Down

0 comments on commit b9c4a1a

Please sign in to comment.