Commit 20e3762
committed
fix: avoid double serialization in VersionedAttestation SCALE size_hint
The size_hint impl was calling to_bytes() to compute the exact size,
then encode_to() would serialize again. Return 0 instead since SCALE's
size_hint is best-effort and used only for pre-allocation.1 parent dd8d9cd commit 20e3762
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
0 commit comments