jup-ag / instruction-parser

Instruction parser for Jupiter.
58 stars 17 forks source link

TypeError: Cannot read properties of null (reading 'property') #32

Open amalashkevich opened 3 months ago

amalashkevich commented 3 months ago
yarn start lookup-tx --signature 5pcpYhqJyyHHxVaa9mvchML6Njro5Chxv7EFjHPSwxVpdyGAt6uVhd1xUBmXe7ztiuhS1iHFgXm67nwr7mem5itu --rpc https://api.mainnet-beta.solana.com
yarn run v1.22.19
$ ts-node src/cli.ts lookup-tx --signature 5pcpYhqJyyHHxVaa9mvchML6Njro5Chxv7EFjHPSwxVpdyGAt6uVhd1xUBmXe7ztiuhS1iHFgXm67nwr7mem5itu --rpc https://api.mainnet-beta.solana.com
/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1692
      dest[clo.property] = this.defaultLayout.decode(b, offset + contentOffset);
               ^
TypeError: Cannot read properties of null (reading 'property')
    at Union.decode (/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1692:16)
    at Structure.decode (/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1234:32)
    at Sequence.decode (/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1090:34)
    at Structure.decode (/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1234:32)
    at WrappedLayout.decode (/Users/dev/jup-ag/instruction-parser/node_modules/@coral-xyz/borsh/src/index.ts:111:37)
    at Structure.decode (/Users/dev/jup-ag/instruction-parser/node_modules/buffer-layout/lib/Layout.js:1234:32)
    at BorshInstructionCoder.decode (/Users/dev/jup-ag/instruction-parser/node_modules/@coral-xyz/anchor/src/coder/borsh/instruction.ts:107:28)
    at InstructionParser.getInitialAndFinalSwapPositions (/Users/dev/jup-ag/instruction-parser/src/lib/instruction-parser.ts:81:41)
    at /Users/dev/jup-ag/instruction-parser/src/index.ts:112:12
    at Generator.next (<anonymous>)
error Command failed with exit code 1.
SunitRoy2703 commented 2 months ago

Is there any development on this issue, I'm facing the same

"err": { "type": "TypeError", "message": "Cannot read properties of null (reading 'property')", "stack": "TypeError: Cannot read properties of null (reading 'property')" }, "msg": "Cannot read properties of null (reading 'property')" }

mczarnecki-mtt commented 1 month ago

Has anyone resolved this issue? Do you know on which type of transaction and why it occurs?