Skip to content

HIP-1342: Ignore Trailing Calldata for System Contracts - #1342

Merged
mgarbs merged 2 commits into
hiero-ledger:mainfrom
InternetOfPeers:ignore-trailing-calldata
Apr 21, 2026
Merged

HIP-1342: Ignore Trailing Calldata for System Contracts#1342
mgarbs merged 2 commits into
hiero-ledger:mainfrom
InternetOfPeers:ignore-trailing-calldata

Conversation

@Neurone

@Neurone Neurone commented Nov 14, 2025

Copy link
Copy Markdown
Contributor

This PR introduces a proposal for the HIP Ignore Trailing Calldata for System Contracts.

This HIP proposes enabling system contract to accept and ignore trailing calldata beyond the ABI-defined parameters of a function. This restores EVM-parity behavior where contracts typically ignore additional bytes in calldata, allowing applications to append small "memo" or order identifiers to standard ERC-20-like calls (e.g., transfer, approve) without causing transaction failure. The change is implemented by updating the parameter decoding used by system contract so that decoding succeeds when extra bytes remain after all expected parameters are parsed. The extra bytes are ignored by the system contract and preserved in the underlying Ethereum transaction/record for off-chain consumption.

@Neurone
Neurone requested a review from a team as a code owner November 14, 2025 18:37
@Neurone Neurone changed the title HIP-XXXX: Ignore Trailing Calldata for HTS System Contract HIP-1342: Ignore Trailing Calldata for HTS System Contract Nov 14, 2025
@web3-nomad

Copy link
Copy Markdown

Thank you @Neurone. I believe this will satisfy Squid's (and others) needs, and make our EVM more compatible with others

@lukelee-sl

Copy link
Copy Markdown
Contributor

adding self for tracking - @lukelee-sl

@mgarbs mgarbs moved this to Draft in HIP Tracker Nov 18, 2025
@kpachhai

Copy link
Copy Markdown
Contributor

I think this would be a great addition to bring HTS system contracts into being more EVM compliant.

@Ferparishuertas Ferparishuertas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add @gkozyryatskyy instea Luke
thanks

@gkozyryatskyy gkozyryatskyy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion within the SC team we are proposing next updates:

  1. Apply Trailing Calldata to other System Contracts to ensure full, non-surprising EVM consistency across all precompiles/system contracts.
  2. Remove from HIP Mitigations: paragraph.
  3. Propose Show trailing data on [HashScan](https://hashscan.io/testnet/home)

Details: https://www.notion.so/swirldslabs/HIP-1342-Ignore-Trailing-CallData-for-HTS-System-Contract-2c07c9ab2591816ab313c32498854432#2c07c9ab2591816daff7cf53682a1ee7

Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-0000-hts-trailing-calldata.md Outdated
Comment thread HIP/hip-1342.md
Comment thread HIP/hip-1342.md
@Neurone Neurone changed the title HIP-1342: Ignore Trailing Calldata for HTS System Contract HIP-1342: Ignore Trailing Calldata for System Contracts Jan 15, 2026
@Neurone
Neurone requested a review from a team as a code owner January 15, 2026 11:11
@Neurone
Neurone requested a review from leninmehedy January 15, 2026 11:11
@Neurone
Neurone force-pushed the ignore-trailing-calldata branch from c3ea421 to 99f352e Compare January 15, 2026 11:14

@gkozyryatskyy gkozyryatskyy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @Neurone !

@mgarbs
mgarbs force-pushed the ignore-trailing-calldata branch from 99f352e to cf347aa Compare February 2, 2026 19:43
@mgarbs mgarbs moved this from Draft to Review in HIP Tracker Feb 4, 2026
@github-actions

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown

This HIP appears to have been inactive for 60 days. If there is no activity or response within 14 days, it will be marked as Stagnant and closed.

To prevent automatic closure, simply add a comment with an update, make a commit, or react to this message. Maintainers can also add a 'keep-open' label to exempt this HIP.

Neurone and others added 2 commits April 6, 2026 19:21
Signed-off-by: Giuseppe Bertone <giuseppe.bertone@hashgraph.com>
Signed-off-by: Michael Garber <michael.garber@hashgraph.com>
@Neurone
Neurone force-pushed the ignore-trailing-calldata branch from ad018a4 to a08aa72 Compare April 6, 2026 17:21
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@mgarbs mgarbs moved this from Review to Last Call in HIP Tracker Apr 15, 2026
@mgarbs
mgarbs merged commit c9521c8 into hiero-ledger:main Apr 21, 2026
8 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from Last Call to Withdrawn in HIP Tracker Apr 21, 2026
@mgarbs mgarbs moved this from Withdrawn to Last Call in HIP Tracker Apr 21, 2026
@mgarbs mgarbs moved this from Last Call to Hiero Review in HIP Tracker Jul 22, 2026
@mgarbs mgarbs moved this from Hiero Review to Approved in HIP Tracker Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved

Development

Successfully merging this pull request may close these issues.

7 participants