Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix tx for new Calldata call (#191)
Browse files Browse the repository at this point in the history
* fix tx for new calldata call

* remove alias
  • Loading branch information
igamigo authored Sep 22, 2023
1 parent b2ea656 commit d364293
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/starknet_explorer/data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,9 @@ defmodule StarknetExplorer.Data do
|> Enum.map(fn {call_data, index} ->
# TODO: this can be optimized because we are going out to the Rpc/DB for every call, but contracts might be repeated
# (like in the case of CALL and DELEGATE call types) so those can be coalesced
input_data =
Calldata.get_input_data(
"latest",
call_data.contract_address,
call_data.selector,
network
)

functions_data = Calldata.get_functions_data("latest", call_data.contract_address, network)
{input_data, _structs} = Calldata.get_input_data(functions_data, call_data.selector)

call_data =
Map.put(
Expand Down

0 comments on commit d364293

Please sign in to comment.