Skip to content

Commit

Permalink
🎨 fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
no2chem committed Mar 7, 2019
1 parent 960d55c commit d30216e
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/evmc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit d30216e

Please sign in to comment.