Remove precompile hash table
This commit is contained in:
parent
62968bf733
commit
e2087f0922
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue