|
17 | 17 | * @date 2019
|
18 | 18 | */
|
19 | 19 |
|
20 |
| -import {Debug, Stats} from 'web3-eth-debug'; |
| 20 | +import {Debug, Stats, TraceTransaction} from 'web3-eth-debug'; |
21 | 21 |
|
22 | 22 | const debug = new Debug('http://localhost:8545');
|
23 | 23 |
|
@@ -153,17 +153,17 @@ debug.traceBlockFromFile("", (error: Error, result: any) => {});
|
153 | 153 | // $ExpectType Promise<any>
|
154 | 154 | debug.traceBlockFromFile("", {disableStack: true, disableMemory: true, disableStorage: true}, (error: Error, result: any) => {});
|
155 | 155 |
|
156 |
| -// $ExpectType Promise<any> |
| 156 | +// $ExpectType Promise<TraceTransaction> |
157 | 157 | debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f");
|
158 | 158 |
|
159 |
| -// $ExpectType Promise<any> |
| 159 | +// $ExpectType Promise<TraceTransaction> |
160 | 160 | debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", {disableStack: true, disableMemory: true, disableStorage: true});
|
161 | 161 |
|
162 |
| -// $ExpectType Promise<any> |
163 |
| -debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", (error: Error, result: any) => {}); |
| 162 | +// $ExpectType Promise<TraceTransaction> |
| 163 | +debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", (error: Error, result: TraceTransaction) => {}); |
164 | 164 |
|
165 |
| -// $ExpectType Promise<any> |
166 |
| -debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", {disableStack: true, disableMemory: true, disableStorage: true}, (error: Error, result: any) => {}); |
| 165 | +// $ExpectType Promise<TraceTransaction> |
| 166 | +debug.traceTransaction("0xfc9359e49278b7ba99f59edac0e3de49956e46e530a53c15aa71226b7aa92c6f", {disableStack: true, disableMemory: true, disableStorage: true}, (error: Error, result: TraceTransaction) => {}); |
167 | 167 |
|
168 | 168 | // $ExpectType Promise<any>
|
169 | 169 | debug.verbosity(5);
|
|
0 commit comments