From d30216e1788d3038360c8f3d6fee018795b9a832 Mon Sep 17 00:00:00 2001 From: Michael Wei Date: Thu, 7 Mar 2019 00:59:04 -0800 Subject: [PATCH] :art: fix style --- src/evmc.ts | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/evmc.ts b/src/evmc.ts index b99f9dc..58c155e 100644 --- a/src/evmc.ts +++ b/src/evmc.ts @@ -250,7 +250,7 @@ export interface EvmcTxContext { /** Private interface to interact with the EVM binding. */ interface EvmcBinding { - createEvmcEvm(path: string, context: EvmJsContext, obj : {}): EvmcHandle; + createEvmcEvm(path: string, context: EvmJsContext, obj: {}): EvmcHandle; executeEvmcEvm(handle: EvmcHandle, parameters: EvmcExecutionParameters): EvmcResult; releaseEvmcEvm(handle: EvmcHandle): void; @@ -280,21 +280,23 @@ export abstract class Evmc { released = false; constructor(path: string) { - this._evm = evmc.createEvmcEvm(path, { - getAccountExists: this.getAccountExists, - getStorage: this.getStorage, - setStorage: this.setStorage, - getBalance: this.getBalance, - getCodeSize: this.getCodeSize, - getCodeHash: this.getCodeHash, - copyCode: this.copyCode, - selfDestruct: this.selfDestruct, - getTxContext: this.getTxContext, - call: this.call, - getBlockHash: this.getBlockHash, - emitLog: this.emitLog, - executeComplete: () => {} - }, this); + this._evm = evmc.createEvmcEvm( + path, { + getAccountExists: this.getAccountExists, + getStorage: this.getStorage, + setStorage: this.setStorage, + getBalance: this.getBalance, + getCodeSize: this.getCodeSize, + getCodeHash: this.getCodeHash, + copyCode: this.copyCode, + selfDestruct: this.selfDestruct, + getTxContext: this.getTxContext, + call: this.call, + getBlockHash: this.getBlockHash, + emitLog: this.emitLog, + executeComplete: () => {} + }, + this); }