File tree Expand file tree Collapse file tree
modules/sdk-coin-sol/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -507,8 +507,15 @@ export class Transaction extends BaseTransaction {
507507 // This validates the WASM path against production traffic before
508508 // replacing the legacy implementation for all networks.
509509 if ( this . _coinConfig . name === 'tsol' ) {
510+ // explainTransaction should work on unsigned/partially-signed transactions
511+ // (e.g., during parseTransaction round-trips where null signatures become
512+ // zero-filled buffers). Use serialize without signature validation since
513+ // we only need to read the transaction, not broadcast it.
514+ const txBase64 = Buffer . from (
515+ this . _solTransaction . serialize ( { verifySignatures : false , requireAllSignatures : false } )
516+ ) . toString ( 'base64' ) ;
510517 return explainSolTransaction ( {
511- txBase64 : this . toBroadcastFormat ( ) ,
518+ txBase64,
512519 feeInfo : this . _lamportsPerSignature ? { fee : this . _lamportsPerSignature . toString ( ) } : undefined ,
513520 tokenAccountRentExemptAmount : this . _tokenAccountRentExemptAmount ,
514521 coinName : this . _coinConfig . name ,
You can’t perform that action at this time.
0 commit comments