Commit 65f69f7
committed
fix(osmosis): version-gate the denom restriction
osmosis_sign_tx rejected every non-uosmo denomination unconditionally, so
the IBC and factory denoms firmware actually supports were unreachable
through the public helper -- a caller had to drive OsmosisMsgAck by hand.
Firmware commits the host-supplied denom to the signed Amino document from
7.14.2 on (osmosis_signTxUpdateMsgSend escapes it verbatim). Before 7.14.2
the serializer hardcoded uosmo and would sign a uosmo transfer the caller
never asked for, so the fail-closed behaviour is correct there and only
there. Gated on that boundary, matching thorchain_sign_tx.
Adds TestOsmosisClientDenom: forwarding on 7.15.0 and on 7.14.2, rejection
on 7.14.1, and uosmo still signing on legacy firmware. Offline, so it runs
without an emulator.
Also makes zcash_display_address's address_n optional. messages-zcash.proto
marks address_n and account each required only if the other is omitted, but
the required positional made the documented account-only form fail in Python
before a request was built.1 parent 4e4374b commit 65f69f7
2 files changed
Lines changed: 141 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1054 | 1054 | | |
1055 | 1055 | | |
1056 | 1056 | | |
1057 | | - | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1058 | 1060 | | |
1059 | | - | |
| 1061 | + | |
1060 | 1062 | | |
1061 | | - | |
| 1063 | + | |
1062 | 1064 | | |
1063 | | - | |
| 1065 | + | |
1064 | 1066 | | |
1065 | 1067 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1073 | 1074 | | |
1074 | | - | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1075 | 1081 | | |
1076 | 1082 | | |
1077 | | - | |
| 1083 | + | |
1078 | 1084 | | |
1079 | 1085 | | |
1080 | 1086 | | |
| |||
1900 | 1906 | | |
1901 | 1907 | | |
1902 | 1908 | | |
1903 | | - | |
| 1909 | + | |
1904 | 1910 | | |
1905 | 1911 | | |
1906 | 1912 | | |
| |||
1910 | 1916 | | |
1911 | 1917 | | |
1912 | 1918 | | |
1913 | | - | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
1914 | 1922 | | |
1915 | 1923 | | |
1916 | 1924 | | |
| |||
1920 | 1928 | | |
1921 | 1929 | | |
1922 | 1930 | | |
1923 | | - | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
1924 | 1941 | | |
1925 | 1942 | | |
1926 | 1943 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | | - | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
235 | 342 | | |
236 | 343 | | |
0 commit comments