Update packages/sol-tracing-utils/src/utils.ts

Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
This commit is contained in:
Fabio B
2019-02-26 13:13:56 -08:00
committed by GitHub
parent dbd9b1c5c4
commit edb2a34c51

View File

@@ -98,7 +98,7 @@ export const utils = {
} : structLog
);
// HACK(leo): Geth traces sometimes returns those gas costs incorrectly as very big numbers so we manually fix them.
const normalizeCallCost = (structLog: StructLog, idx: number) => {
const normalizeCallCost = (structLog: StructLog, index: number) => {
if (structLog.op === OpCode.Call) {
const HEX_BASE = 16;
const callAddress = parseInt(structLog.stack[0], HEX_BASE);