Commit b20654f
committed
fix(cli): return txid directly from ForCli methods, eliminate LAST_BROADCAST_TX_ID ThreadLocal
Replace the thread-local side-channel (LAST_BROADCAST_TX_ID) with direct
return values — all *ForCli methods now return the txid String (null on
failure) instead of void/boolean. deployContractForCli returns
Pair<contractAddress, txid>; callContractForCli returns
Triple<String, Long, Long> with txid as the left element.
Other fixes in this commit:
- Use lenient JSON parsing in Utils.formatMessageString to tolerate
malformed on-chain data (e.g. asset #436 description on Nile)
- Add QA manifest entry for the help command (noauth-help type)
- Fix test compilation: update overrides to match new signatures1 parent 6784a93 commit b20654f
16 files changed
Lines changed: 579 additions & 418 deletions
File tree
- docs
- qa
- lib
- src
- main/java/org/tron
- common/utils
- walletcli
- cli/commands
- walletserver
- test/java/org/tron
- walletcli/cli/commands
- walletserver
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
755 | 771 | | |
756 | 772 | | |
757 | 773 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
191 | 198 | | |
192 | 199 | | |
193 | 200 | | |
| |||
0 commit comments