Commit df7223b
committed
fix: use serialize without signature validation in WASM explain path
explainTransaction() for tsol calls toBroadcastFormat() to get bytes for
the WASM parser. toBroadcastFormat() calls @solana/web3.js serialize()
which validates signatures by default. After a deserialize-rebuild
round-trip (e.g. during parseTransaction), null signatures become
zero-filled buffers that fail validation.
Use serialize({ verifySignatures: false, requireAllSignatures: false })
instead since explain only needs to read the transaction, not broadcast it.
BTC-30991 parent 7befc20 commit df7223b
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
510 | 517 | | |
511 | | - | |
| 518 | + | |
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
| |||
0 commit comments