Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Update packages/compile-solidity/src/run.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Burns <[email protected]>
  • Loading branch information
eggplantzzz and benjamincburns committed Aug 18, 2022
1 parent a1f21ba commit 821a878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compile-solidity/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function orderABI({ abi, contractName, ast }) {
// Put function names in a hash with their order, lowest first, for speed.
const functionIndexes = orderedFunctionNames
.map((functionName: string, index: number) => ({ [functionName]: index }))
.reduce((a: object, b: object) => Object.assign({}, a, b), {});
.reduce((a: { [functionName: string]: number } , b: { [functionName: string]: number }) => Object.assign({}, a, b), {});

// Construct new ABI with functions at the end in source order
return [
Expand Down

0 comments on commit 821a878

Please sign in to comment.