attempting to close a position containing SOL in its pair fails.
error:
TypeError: x.pubkey.toBase58 is not a function
at sort (/@solana/web3.js/src/transaction.ts:263:10)
at Array.sort (<anonymous>)
at Transaction.compileMessage (/@solana/web3.js/src/transaction.ts:261:18)
at Transaction._compile (/@solana/web3.js/src/transaction.ts:379:26)
at Transaction.partialSign (/@solana/web3.js/src/transaction.ts:504:26)
at /@project-serum/anchor/src/nodewallet.ts:32:9
at Array.map (<anonymous>)
at NodeWallet.signAllTransactions (/@project-serum/anchor/src/nodewallet.ts:31:16)
at /francium-sdk/dist/utils/sign.js:25:37
at Generator.next (<anonymous>)
offending code snippet:
console.log('------ start sign ------', trxs);
const signed = await wallet.signAllTransactions(trxs);
console.info('----- Sign end -----');
reproduce:
Open a SOL-xxx pair position in franc or through CLI (does not matter - both fail).
attempting to close a position containing SOL in its pair fails.
error:
offending code snippet:
reproduce: