Fix polygon tracer

pull/8543/head
Viktor Baranov 1 year ago
parent 46fb6874d1
commit c5ed2de199
  1. 1
      CHANGELOG.md
  2. 6
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/geth/polygon_tracer.ex

@ -9,6 +9,7 @@
- [#8544](https://github.com/blockscout/blockscout/pull/8544) - Fix `nil` `"structLogs"`
- [#8542](https://github.com/blockscout/blockscout/pull/8542) - Add tracing for rootstock
- [#8561](https://github.com/blockscout/blockscout/pull/8561), [#8564](https://github.com/blockscout/blockscout/pull/8564) - Get historical market cap data from CoinGecko
- [#8543](https://github.com/blockscout/blockscout/pull/8543) - Fix polygon tracer
- [#8386](https://github.com/blockscout/blockscout/pull/8386) - Add `owner_address_hash` to the `token_instances`
- [#8530](https://github.com/blockscout/blockscout/pull/8530) - Add `block_type` to search results
- [#8180](https://github.com/blockscout/blockscout/pull/8180) - Deposits and Withdrawals for Polygon Edge

@ -287,7 +287,7 @@ defmodule EthereumJSONRPC.Geth.PolygonTracer do
calls: calls
} = ctx
) do
log_stack = Enum.reverse(log_stack)
[_, to | log_stack] = Enum.reverse(log_stack)
{value, [input_length, output_length | _]} =
case call_type do
@ -305,13 +305,13 @@ defmodule EthereumJSONRPC.Geth.PolygonTracer do
input =
log_memory
|> IO.iodata_to_binary()
|> String.slice(0, quantity_to_integer(input_length) * 2)
|> String.slice(0, quantity_to_integer(input_length || 0) * 2)
call = %{
"type" => "call",
"callType" => call_type,
"from" => nil,
"to" => @burn_address,
"to" => to,
"traceAddress" => Enum.reverse(trace_address),
"input" => "0x" <> input,
"output" => "0x",

Loading…
Cancel
Save