Commit 286dd11
feat(wasm-dot): replace AddressFormat enum with numeric union type
Replace the numeric enum with a `type AddressFormat = 0 | 2 | 42` union
and a matching `const AddressFormat` object. This follows the wasm-utxo
convention and lets callers pass a raw SS58 prefix number directly
(e.g. from DotAddressFormat in sdk-core) without a type cast.
All existing call sites using AddressFormat.Polkadot / .Kusama / .Substrate
continue to work unchanged.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ticket: BTC-31271 parent 19ee5a9 commit 286dd11
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
225 | 227 | | |
226 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
227 | 236 | | |
228 | | - | |
| 237 | + | |
229 | 238 | | |
230 | | - | |
| 239 | + | |
231 | 240 | | |
232 | | - | |
233 | | - | |
| 241 | + | |
| 242 | + | |
0 commit comments