diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-14 19:16:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-14 19:16:00 +0800 |
commit | 2b8f0d887ad529bb0557a55c67cc162977c7b270 (patch) | |
tree | 0554e59391a6e9ca288b7de7e9b529762f822dbe | |
parent | 2581bc93e5893d43642b240d290c141f0d9419bf (diff) | |
download | dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar.gz dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar.bz2 dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar.lz dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar.xz dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.tar.zst dexon-sol-tools-2b8f0d887ad529bb0557a55c67cc162977c7b270.zip |
Fix linter
-rw-r--r-- | packages/sol-tracing-utils/src/trace_collection_subprovider.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-tracing-utils/src/trace_collection_subprovider.ts b/packages/sol-tracing-utils/src/trace_collection_subprovider.ts index 8b4ea82f5..3ae8566f9 100644 --- a/packages/sol-tracing-utils/src/trace_collection_subprovider.ts +++ b/packages/sol-tracing-utils/src/trace_collection_subprovider.ts @@ -26,7 +26,7 @@ type AsyncFunc = (...args: any[]) => Promise<void>; // we need this because web3-provider-engine does not handler promises in // the after function of next(after). function logErrors(fn: AsyncFunc): AsyncFunc { - async function wrapped(...args: any[]): Promise<void> { + async function wrappedAsync(...args: any[]): Promise<void> { try { await fn(...args); } catch (e) { @@ -35,7 +35,7 @@ function logErrors(fn: AsyncFunc): AsyncFunc { throw e; } } - return wrapped; + return wrappedAsync; } // Because there is no notion of a call trace in the Ethereum rpc - we collect them in a rather non-obvious/hacky way. |