Skip to content

Commit

Permalink
docs: add context truncated input (#12207)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Oct 30, 2024
1 parent b42b189 commit e5fc048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/rpc/rpc/src/otterscan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ where
*transactions = transactions.drain(page_start..page_end).collect::<Vec<_>>();

// The input field returns only the 4 bytes method selector instead of the entire
// calldata byte blob.
// calldata byte blob
// See also: <https://github.com/ledgerwatch/erigon/blob/aefb97b07d1c4fd32a66097a24eddd8f6ccacae0/turbo/jsonrpc/otterscan_api.go#L610-L617>
for tx in transactions.iter_mut() {
if tx.input().len() > 4 {
Eth::TransactionCompat::otterscan_api_truncate_input(tx);
Expand Down

0 comments on commit e5fc048

Please sign in to comment.