Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
v1rtl committed Feb 17, 2023
1 parent 8e4d148 commit f643c2e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ const bindCompileJson = (solJson: SolJson) =>
null,
)



function wrapCallbackWithKind(
coreBindings: CoreBindings,
callback: (arg1: string, arg2: string) => { contents: string; error: string },
Expand Down Expand Up @@ -241,17 +239,16 @@ function bindCompileStandard(solJson: SolJson, coreBindings: CoreBindings) {
['string', 'number', 'number'],
null,
)


if (!isNil(compileInternal)) {
boundFunctionStandard = function (input: number, readCallback: Callbacks) {
return runWithCallbacks( coreBindings, readCallback, compileInternal!, [input])
return runWithCallbacks(coreBindings, readCallback, compileInternal!, [input])
}
}

if (!isNil(boundFunctionSolidity)) {
boundFunctionStandard = function (input: number, callbacks: Callbacks) {
return runWithCallbacks( coreBindings, callbacks, boundFunctionSolidity, [input])
return runWithCallbacks(coreBindings, callbacks, boundFunctionSolidity, [input])
}
}

Expand Down

0 comments on commit f643c2e

Please sign in to comment.