-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The broken example/lib #12
Comments
#### Problem As mentioned at anza-xyz#12, it's unclear how to run the example. #### Summary of changes Add a corresponding package.json, making it possible to simply install dependencies, build, and run the example.
#### Problem As mentioned at anza-xyz#12, it's unclear how to run the example. #### Summary of changes Add a corresponding package.json, making it possible to simply install dependencies, build it, and run.
The provided code mixes web3.js v1 and v2, so it won't work. Try to use all v1 or all v2, so either:
With the example at https://github.com/anza-xyz/solana-rpc-client-extensions/tree/main/js/examples Or
With the example at https://github.com/anza-xyz/solana-rpc-client-extensions/blob/main/js-v1/examples/ I've put in some PRs to make the examples clearer to use. |
#### Problem As mentioned at #12, it's unclear how to run the example. #### Summary of changes Add a corresponding package.json, making it possible to simply install dependencies, build, and run the example.
#### Problem As mentioned at #12, it's unclear how to run the example. #### Summary of changes Add a corresponding package.json, making it possible to simply install dependencies, build it, and run.
@joncinque thanks! |
You're very welcome! |
package.json
file:///solana-stake-scripts/node_modules/.pnpm/@anza-xyz[email protected]/node_modules/@anza-xyz/solana-rpc-get-stake-activation/dist/src/index.mjs:137
if (parsedData.value === null || parsedData.value.data instanceof Buffer) {
^
TypeError: Cannot read properties of undefined (reading 'data')
at getStakeAccount (file:///solana-stake-scripts/node_modules/.pnpm/@anza-xyz[email protected]/node_modules/@anza-xyz/solana-rpc-get-stake-activation/dist/src/index.mjs:137:53)
at file:///solana-stake-scripts/node_modules/.pnpm/@anza-xyz[email protected]/node_modules/@anza-xyz/solana-rpc-get-stake-activation/dist/src/index.mjs:194:29
at async Promise.all (index 1)
at async getStakeActivation (file:///solana-stake-scripts/node_modules/.pnpm/@anza-xyz[email protected]/node_modules/@anza-xyz/solana-rpc-get-stake-activation/dist/src/index.mjs:187:77)
at async file:///solana-stake-scripts/main.mjs:12:16
getParsedAccountInfo: SolanaError: JSON-RPC error: The method does not exist / is not available (Method not found)
The text was updated successfully, but these errors were encountered: