diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-09 04:27:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-09 05:56:45 +0800 |
commit | 1c3dc757c3332dad39f47e25cbbbdc60ce2540da (patch) | |
tree | f7cca8c6a29bafc79f7f3fd5438c15907f799647 /packages/web3-wrapper/src/web3_wrapper.ts | |
parent | 25866095dbc7ae7e08f1f44939c7cf1910d50b6b (diff) | |
download | dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar.gz dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar.bz2 dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar.lz dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar.xz dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.tar.zst dexon-0x-contracts-1c3dc757c3332dad39f47e25cbbbdc60ce2540da.zip |
Fix typos
Diffstat (limited to 'packages/web3-wrapper/src/web3_wrapper.ts')
-rw-r--r-- | packages/web3-wrapper/src/web3_wrapper.ts | 11 |
1 files changed, 11 insertions, 0 deletions
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<string> { const code = await promisify<string>(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<TransactionTrace> { const trace = await this._sendRawPayloadAsync<TransactionTrace>({ method: 'debug_traceTransaction', |