]> Untitled Git - bdk-cli/commit
refactor(op_return): parse OP_RETURN data at the clap boundary
authorVihiga Tyonum <withtvpeter@gmail.com>
Mon, 19 Oct 2026 17:35:18 +0000 (18:35 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Mon, 2 Nov 2026 11:11:13 +0000 (12:11 +0100)
commit22304652f99e33f22d97a75b549be59c8bbb8283
tree132e4c56e624d08eb24ae756b8da15df035473cf
parent4dbc3e8891aa8a2e1357872c75f10aeca1d7daec
refactor(op_return): parse OP_RETURN data at the clap boundary

- `create_tx`, `create_sp_tx` and `create_dns_tx` each decoded
`--add_data`/`--add_string` into a `PushBytesBuf` in the handler, with
the same block. Parse both arguments with clap value parsers.

- Malformed `--add_data` base64 is now rejected at argument parsing
(exit 2) before a wallet is loaded, rather than when building (exit 1).
src/handlers/dns/mod.rs
src/handlers/offline.rs
src/utils/common.rs
tests/integration/offline.rs