File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
modules/sdk-coin-flrp/src/lib Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,14 @@ export class Transaction extends BaseTransaction {
231231 return FlareUtils . bufferToHex ( this . _rawSignedBytes ) ;
232232 }
233233 const unsignedTx = this . _flareTransaction as UnsignedTx ;
234- // Always include credentials in the output with checksum (matching avaxp behavior)
235- // This ensures unsigned transactions have empty signature slots for identification
236- return FlareUtils . bufferToHex ( utils . addChecksum ( unsignedTx . getSignedTx ( ) . toBytes ( ) ) ) ;
234+ const signedTxBytes = unsignedTx . getSignedTx ( ) . toBytes ( ) ;
235+
236+ // Both P-chain and C-chain transactions include checksum (matching avaxp behavior)
237+ // avaxp P-chain: transaction.ts uses addChecksum() explicitly
238+ // avaxp C-chain: deprecatedTransaction.ts uses Tx.toStringHex() which internally adds checksum
239+ const rawTx = FlareUtils . bufferToHex ( utils . addChecksum ( signedTxBytes ) ) ;
240+ console . log ( 'rawTx in toBroadcastFormat:' , rawTx ) ;
241+ return rawTx ;
237242 }
238243
239244 toJson ( ) : TxData {
You can’t perform that action at this time.
0 commit comments