-
Notifications
You must be signed in to change notification settings - Fork 893
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
Parsing TransactionInstruction Data with New IInstruction Type #3595
base: master
Are you sure you want to change the base?
Parsing TransactionInstruction Data with New IInstruction Type #3595
Conversation
|
@steveluscher I tried to run the below command and got the output as attached in the screenshot. pnpm test:lint && pnpm test:typecheck && pnpm test:prettier But there are few errors as well getting triggered - src/__tests__/instruction-test.ts:1:29 - error TS7016: Could not find a declaration file for module '@solana/instructions'. '/Cipher/OpenSource/solana-web3.js/packages/instructions/dist/index.node.cjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/solana__instructions` if it exists or add a new declaration (.d.ts) file containing `declare module '@solana/instructions';`
1 import { AccountRole } from '@solana/instructions';
~~~~~~~~~~~~~~~~~~~~~~ Is this expected? |
Generally, you have to run those cross workspace. Our cross-workspace task runner is called Turborepo. pnpm turbo test:lint test:typecheck test:prettier Running with |
Thanks! @steveluscher @solana/errors#test:lint: command (/Cipher/OpenSource/solana-web3.js/packages/errors) /home/cipher/.nvm/versions/node/v21.7.1/bin/pnpm run test:lint exited (137)
Tasks: 85 successful, 101 total
Cached: 85 cached, 101 total
Time: 51.547s
Failed: @solana/errors#test:lint
ERROR run failed: command exited (137) |
@steveluscher This worked fine with the particular package compact where changes are present. Is this fine? |
Adds a
fromLegacyTransactionInstruction
function to convert the legacy shape to the modern one.This pull request was created for https://app.gib.work/bounties/0a69df5e-4df3-497e-b180-2c5008e6dc18 in an attempt to solve a bounty #3593 . Payment for the bounty is immediately sent to the contributor after merge.