Skip to content

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Oct 21, 2020
1 parent 17c4dd5 commit be15570
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/vm/lib/evm/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export default class EVM {
}

async _touchAccount(address: Address): Promise<void> {
const acc = await this._state.getAccount(address)
return this._state.putAccount(address, acc)
const account = await this._state.getAccount(address)
return this._state.putAccount(address, account)
}
}
8 changes: 0 additions & 8 deletions packages/vm/scripts/benchmarks/mainnetBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,6 @@ export async function getPreState(pre: {
return state
}

const hexToBuffer = (h: string, allowZero: boolean = false): Buffer => {
const buf = toBuffer(h)
if (!allowZero && buf.toString('hex') === '00') {
return Buffer.alloc(0)
}
return buf
}

main()
.then()
.catch((e: Error) => {
Expand Down

0 comments on commit be15570

Please sign in to comment.