Commit 9290793
committed
fix: make material required in DotTransaction.fromHex/fromBytes
Without material, the parser silently falls back to guessing the
signed extension layout (assumes era + nonce + tip only). On chains
with additional extensions (AuthorizeCall, StorageWeightReclaim,
CheckMetadataHash, ChargeAssetTxPayment), this causes extra extension
bytes to leak into call_data, producing silently corrupted transactions.
All existing callers already pass material. Making it required turns
a silent data corruption bug into a compile-time error.
BTC-30621 parent aaff21f commit 9290793
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments