RPC: Don't export rpcSetupComputation

The point of the `call_vm` exercise is to allow `Computation` to become an
internal type of the EVM, not used as API by the rest of the program.  So
`rpcSetupComputation` should be private.  It was left exported by mistake.

Signed-off-by: Jamie Lokier <jamie@shareable.org>
This commit is contained in:
Jamie Lokier 2021-05-03 21:28:55 +01:00
parent c7e1cb61ee
commit cc7307186d
No known key found for this signature in database
GPG Key ID: CBC25C68435C30A2
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ type
data*: seq[byte]
contractCreation*: bool
proc rpcSetupComputation*(vmState: BaseVMState, call: RpcCallData,
fork: Fork, gasLimit: GasInt): Computation =
proc rpcSetupComputation(vmState: BaseVMState, call: RpcCallData,
fork: Fork, gasLimit: GasInt): Computation =
vmState.setupTxContext(
origin = call.source,
gasPrice = call.gasPrice,