From 1c3dc757c3332dad39f47e25cbbbdc60ce2540da Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 8 Jun 2018 13:27:55 -0700 Subject: Fix typos --- packages/web3-wrapper/src/web3_wrapper.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages/web3-wrapper/src') diff --git a/packages/web3-wrapper/src/web3_wrapper.ts b/packages/web3-wrapper/src/web3_wrapper.ts index ecb400656..780695091 100644 --- a/packages/web3-wrapper/src/web3_wrapper.ts +++ b/packages/web3-wrapper/src/web3_wrapper.ts @@ -195,10 +195,21 @@ export class Web3Wrapper { const isCodeEmpty = /^0x0{0,40}$/i.test(code); return !isCodeEmpty; } + /** + * Gets the contract code by address + * @param address Address of the contract + * @return Code of the contract + */ public async getContractCodeAsync(address: string): Promise { const code = await promisify(this._web3.eth.getCode)(address); return code; } + /** + * Gets the debug trace of a transaction + * @param txHash Hash of the transactuon to get a trace for + * @param traceParams Config object allowing you to specify if you need memory/storage/stack traces. + * @return Transaction trace + */ public async getTransactionTraceAsync(txHash: string, traceParams: TraceParams): Promise { const trace = await this._sendRawPayloadAsync({ method: 'debug_traceTransaction', -- cgit v1.2.3