You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cant seem to get the snap to sign successfully, tried both sign and signAll. I see the code implements both so maybe theres a bug somewhere in sending the data to the metamask rpc call?
const{ wallet }=useWallet();{varinstructions=generateIx();//shorted for brevityconsttx=newTransaction().add(...instructions)tx.recentBlockhash=(awaitconnection.getLatestBlockhash()).blockhashtx.feePayer=wallet.publicKeytx.sign(...mints, ...members)txs.push(tx)}constsignedTxns=awaitwallet.signAllTransactions(txs);
Just using a standard txn generation and trying to sign all. Im using the snap adapter for eclipse network rpc: https://staging-rpc.dev2.eclipsenetwork.xyz
Cant seem to get the snap to sign successfully, tried both sign and signAll. I see the code implements both so maybe theres a bug somewhere in sending the data to the metamask rpc call?
Console error when signing:
code: -32603, message: 'Received non-JSON-serializable value: Expected the…| array | record`, but received: [object Object].'}
my only suspicion is its throwing here:
https://github.com/drift-labs/snap-solana/blob/master/snap-wallet-adapter/src/index.ts#L182 since sending a buffer not encoded might throw since its a complex object over the wire
But I do get the popup window, just confirming always fails:
https://github.com/drift-labs/snap-solana/blob/master/snap-core/src/index.ts#L235
The text was updated successfully, but these errors were encountered: