Fix invalid trace for CALL operation - (#2319)

Signed-off-by: Karim TAAM <karim.t2am@gmail.com>
pull/2345/head
matkt 4 years ago committed by GitHub
parent 17b2d53aa8
commit 30c9aaa9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/results/tracing/flat/FlatTraceGenerator.java

@ -20,6 +20,7 @@ concerns, please reach out to the ConsenSys protocol engineering team in the
* Ethereum Classic Magneto Hard Fork [\#2315](https://github.com/hyperledger/besu/pull/2315)
### Bug Fixes
* Fix invalid transfer values with the tracing API specifically for CALL operation [\#2319](https://github.com/hyperledger/besu/pull/2319)
### Early Access Features

@ -280,7 +280,7 @@ public class FlatTraceGenerator {
nextTraceFrame.map(TraceFrame::getInputData).map(Bytes::toHexString).orElse(null))
.gas(nextTraceFrame.map(TraceFrame::getGasRemaining).orElse(Gas.ZERO).toHexString())
.callType(opcodeString.toLowerCase(Locale.US))
.value(Quantity.create(transactionTrace.getTransaction().getValue()));
.value(Quantity.create(traceFrame.getValue()));
if (stack.length > 1) {
subTraceActionBuilder.to(toAddress(stack[stack.length - 2]).toString());

Loading…
Cancel
Save