aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 01:39:56 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-24 01:39:56 +0800
commitc9aef166495c0a1b1c34db01226602375c0b3547 (patch)
treef7b28657a056b1db96bd1314c165976b4c0c69f3 /packages/sol-cov
parent6a77e0fe56b1fdc3bef990f8418d741c6a338763 (diff)
downloaddexon-sol-tools-c9aef166495c0a1b1c34db01226602375c0b3547.tar.gz
dexon-sol-tools-c9aef166495c0a1b1c34db01226602375c0b3547.tar.zst
dexon-sol-tools-c9aef166495c0a1b1c34db01226602375c0b3547.zip
Fix linter issues
Diffstat (limited to 'packages/sol-cov')
-rw-r--r--packages/sol-cov/src/trace.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sol-cov/src/trace.ts b/packages/sol-cov/src/trace.ts
index cb5410909..6caea1610 100644
--- a/packages/sol-cov/src/trace.ts
+++ b/packages/sol-cov/src/trace.ts
@@ -9,7 +9,8 @@ export interface TraceByContractAddress {
}
function getAddressFromStackEntry(stackEntry: string): string {
- return addressUtils.padZeros(new BigNumber(addHexPrefix(stackEntry)).toString(16));
+ const hexBase = 16;
+ return addressUtils.padZeros(new BigNumber(addHexPrefix(stackEntry)).toString(hexBase));
}
export function getTracesByContractAddress(structLogs: StructLog[], startAddress: string): TraceByContractAddress {