private (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteAndTraceParityCall(ParityTraceTypes traceTypes, params byte[] code) { (var block, var transaction) = PrepareTx(BlockNumber, 100000, code); ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, traceTypes); _processor.Execute(transaction, block.Header, tracer); return(tracer.BuildResult(), block, transaction); }
private (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteAndTraceParityCall(byte[] input, UInt256 value, params byte[] code) { (var block, var transaction) = PrepareTx(BlockNumber, 100000, code, input, value); ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, ParityTraceTypes.Trace | ParityTraceTypes.StateDiff); _processor.Execute(transaction, block.Header, tracer); return(tracer.BuildResult(), block, transaction); }
protected (ParityLikeTxTrace trace, Block block, Transaction tx) ExecuteInitAndTraceParityCall(params byte[] code) { (var block, var transaction) = PrepareInitTx(BlockNumber, 100000, code); ParityLikeTxTracer tracer = new ParityLikeTxTracer(block, transaction, ParityTraceTypes.Trace | ParityTraceTypes.StateDiff); _processor.Execute(transaction, block.Header, tracer); return(tracer.BuildResult(), block, transaction); }