Remove precompile hash table

This commit is contained in:
coffeepots 2018-10-02 15:55:28 +01:00
parent 62968bf733
commit e2087f0922
3 changed files with 0 additions and 3 deletions

View File

@ -46,7 +46,6 @@ proc setupComputation*(header: BlockHeader, vmState: var BaseVMState, transactio
createAddress = transaction.to))
result = newBaseComputation(vmState, header.blockNumber, message)
result.precompiles = initTable[string, Opcode]()
doAssert result.isOriginComputation
proc execComputation*(computation: var BaseComputation, vmState: BaseVMState): bool =

View File

@ -32,7 +32,6 @@ type
shouldEraseReturnData*: bool
accountsToDelete*: Table[EthAddress, EthAddress]
opcodes*: Table[Op, proc(computation: var BaseComputation){.nimcall.}]
precompiles*: Table[string, Opcode]
gasCosts*: GasCosts # TODO - will be hidden at a lower layer
opCodeExec*: OpcodeExecutor

View File

@ -44,7 +44,6 @@ proc testCode(code: string, initialGas: GasInt, blockNum: UInt256): BaseComputat
c.displayDecompiled()
result = newBaseComputation(vmState, blockNum, message)
result.precompiles = initTable[string, Opcode]()
result.executeOpcodes()