Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
LogvinovLeon committed Feb 26, 2019
1 parent ec24c79 commit 3f0db92
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/sol-tracing-utils/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ export const utils = {
});
let normalizedStructLogs = structLogs;
// HACK(leo): Geth traces sometimes returns those gas costs incorrectly as very big numbers so we manually fix them.
const normalizeStaticCallCost = (structLog: StructLog) => (
(structLog.op === OpCode.StaticCall) ? {
...structLog,
gasCost: STATICCALL_GAS_COST,
} : structLog
);
const normalizeStaticCallCost = (structLog: StructLog) =>
structLog.op === OpCode.StaticCall
? {
...structLog,
gasCost: STATICCALL_GAS_COST,
}
: structLog;
// HACK(leo): Geth traces sometimes returns those gas costs incorrectly as very big numbers so we manually fix them.
const normalizeCallCost = (structLog: StructLog, index: number) => {
if (structLog.op === OpCode.Call) {
Expand Down

0 comments on commit 3f0db92

Please sign in to comment.