Skip to content

Commit 3271dad

Browse files
authored
Merge pull request #6452 from obycode/fix/decode-tx-testnet
fix: print correct address version in `stacks-inspect decode-tx`
2 parents f0be205 + 9bc5be8 commit 3271dad

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ and this project adheres to the versioning scheme outlined in the [README.md](RE
2626
expressive (#6337)
2727
- Removed affirmation maps logic throughout, upgrading chainstate DB schema to 11 and burnchain DB schema to 3 (#6314)
2828

29-
### Changed
29+
### Fixed
3030

31+
- When running `stacks-inspect decode-tx`, print the correct version of the address (mainnet or testnet) based on the transaction passed in
3132
- When a contract deploy is analyzed, it will no longer throw a `CostError` when the contract contains an undefined top-level variable. Instead, it will throw a `UndefinedVariable` error.
3233

3334
## [3.2.0.0.1]

stackslib/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,10 @@ fn main() {
423423
.unwrap();
424424

425425
println!("Verified: {:#?}", tx.verify());
426-
println!("Address: {}", tx.auth.origin().address_mainnet());
426+
let address = tx.auth.origin().get_address(tx.is_mainnet());
427+
println!("Address: {address}");
427428

428-
println!("{:#?}", &tx);
429+
println!("{tx:#?}");
429430
process::exit(0);
430431
}
431432

0 commit comments

Comments
 (0)