We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test for token-swap, on localnet, get error:
token-swap
Create AMM ✔ Creation (387ms) ✔ Invalid fee (71ms) Create pool 1) "before each" hook for "Creation" Deposit liquidity 2) "before each" hook for "Deposit equal amounts" Swap 3) "before each" hook for "Swap from A to B" Withdraw liquidity 4) "before each" hook for "Withdraw everything" 2 passing (11s) 4 failing 1) Create pool "before each" hook for "Creation": TypeError: Cannot read properties of undefined (reading 'toString') at Transaction.sign (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/transaction/legacy.ts:671:36) at Connection.sendTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/connection.ts:5846:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at sendAndConfirmTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21) 2) Deposit liquidity "before each" hook for "Deposit equal amounts": TypeError: Cannot read properties of undefined (reading 'toString') at Transaction.sign (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/transaction/legacy.ts:671:36) at Connection.sendTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/connection.ts:5846:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at sendAndConfirmTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21) 3) Swap "before each" hook for "Swap from A to B": TypeError: Cannot read properties of undefined (reading 'toString') at Transaction.sign (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/transaction/legacy.ts:671:36) at Connection.sendTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/connection.ts:5846:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at sendAndConfirmTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21) 4) Withdraw liquidity "before each" hook for "Withdraw everything": TypeError: Cannot read properties of undefined (reading 'toString') at Transaction.sign (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/transaction/legacy.ts:671:36) at Connection.sendTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/connection.ts:5846:21) at processTicksAndRejections (node:internal/process/task_queues:105:5) at sendAndConfirmTransaction (node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@solana/web3.js/src/utils/send-and-confirm-transaction.ts:35:21)
The text was updated successfully, but these errors were encountered:
Maybe it's due to anchor version, I saw the project using 0.30.0.
0.30.0
I upgraded to version 0.30.1 for both anchor program & ts client, rebuild, but still the same error. Can you run that test and pass ?
0.30.1
Sorry, something went wrong.
No branches or pull requests
test for
token-swap
, on localnet, get error:The text was updated successfully, but these errors were encountered: