fixes rpc/p2p.nim compilation error
This commit is contained in:
parent
d30f434f03
commit
e4db21272c
|
@ -277,21 +277,22 @@ proc setupEthRpc*(node: EthereumNode, chain: BaseChainDB, rpcsrv: RpcServer) =
|
||||||
sender, destination: EthAddress,
|
sender, destination: EthAddress,
|
||||||
gasLimit, gasPrice: GasInt,
|
gasLimit, gasPrice: GasInt,
|
||||||
contractCreation: bool): BaseComputation =
|
contractCreation: bool): BaseComputation =
|
||||||
#let
|
let
|
||||||
# # Handle optional defaults.
|
# Handle optional defaults.
|
||||||
# message = newMessage(
|
message = Message(
|
||||||
# gas = gasLimit,
|
kind: if contractCreation: evmcCreate else: evmcCall,
|
||||||
# gasPrice = gasPrice,
|
depth: 0,
|
||||||
# to = destination,
|
gas: gasLimit,
|
||||||
# sender = sender,
|
gasPrice: gasPrice,
|
||||||
# value = value,
|
origin: sender,
|
||||||
# data = data,
|
sender: sender,
|
||||||
# code = vmState.readOnlyStateDB.getCode(destination).toSeq,
|
contractAddress: destination,
|
||||||
# contractCreation = contractCreation,
|
codeAddress: CREATE_CONTRACT_ADDRESS,
|
||||||
# options = newMessageOptions(origin = sender,
|
value: value,
|
||||||
# createAddress = destination))
|
data: data,
|
||||||
#
|
code: vmState.readOnlyStateDB.getCode(destination).toSeq
|
||||||
#result = newBaseComputation(vmState, blockNumber, message)
|
)
|
||||||
|
result = newBaseComputation(vmState, blockNumber, message)
|
||||||
|
|
||||||
rpcsrv.rpc("eth_call") do(call: EthCall, quantityTag: string) -> HexDataStr:
|
rpcsrv.rpc("eth_call") do(call: EthCall, quantityTag: string) -> HexDataStr:
|
||||||
## Executes a new message call immediately without creating a transaction on the block chain.
|
## Executes a new message call immediately without creating a transaction on the block chain.
|
||||||
|
|
Loading…
Reference in New Issue