I'm using an example provided by soroban-client library
https://github.com/stellar/js-soroban-client/blob/main/docs/reference/examples.md
but instead of using sign method I return transaction.toEnvelope().toXDR('base64') and then sign that with my freighter wallet:
const signedTx = await signTransaction(txXDR, { network: 'FUTURENET', networkPassphrase: 'Test SDF Future Network ; October 2022', accountToSign: pubKey, });
SignedTx is transaction envelope xdr. Then I am able to get the transaction envelope object with:
const txEnvelope = SorobanClient.xdr.TransactionEnvelope.fromXDR( inputs.tx, 'base64' );
And Transaction object with:
const tx = txEnvelope.v1().tx();
But SorobanClient sendTransaction() method expects type Transaction<Memo<MemoType>, Operation[]> | FeeBumpTransaction
Has anyone figured how to sendTransaction when it's signed with freighter wallet?