Skip to content

fix: nodewallet and types#80

Merged
nickfrosty merged 1 commit intomainfrom
fixes
Mar 20, 2025
Merged

fix: nodewallet and types#80
nickfrosty merged 1 commit intomainfrom
fixes

Conversation

@nickfrosty
Copy link
Copy Markdown
Member

Problem

the NodeWallet import is only valid for CJS, not all javascript stacks. running some scripts, like the ones in the solana basics workshop, may result in errors.

from testing, it seems using npm to install the packages in that repo results in the error. but using pnpm does not, which is why this was not caught before

Summary of Changes

  • removed the NodeWallet import for the correct Wallet import
  • fixed a few type errors for Uint8Array vs Buffer

Fixes: #79

@nickfrosty nickfrosty merged commit a7e75d0 into main Mar 20, 2025
1 check passed
@nickfrosty nickfrosty deleted the fixes branch March 20, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

version 2.8.0 throw error:Did you mean to import "@coral-xyz/anchor/dist/cjs/nodewallet.js"?

1 participant