Skip to content

Conversation

@0xLayer-3
Copy link

Wrong / inconsistent ABI-encoding usage

You mixed the instance method (call.abi_encode()) with an (unlikely) associated call (Type::abi_encode(&call)). With Alloy’s SolCall, abi_encode is an instance method. Fixed to use it consistently.

Redundant Bytes::from(...)
abi_encode() already returns alloy::primitives::Bytes. No need to re-wrap. Removed extra conversions.

Tiny cleanups
Inlined trivial extra_data where helpful; kept behavior identical.

Wrong / inconsistent ABI-encoding usage

You mixed the instance method (call.abi_encode()) with an (unlikely) associated call (Type::abi_encode(&call)). With Alloy’s SolCall, abi_encode is an instance method. Fixed to use it consistently.

Redundant Bytes::from(...)
abi_encode() already returns alloy::primitives::Bytes. No need to re-wrap. Removed extra conversions.

Tiny cleanups
Inlined trivial extra_data where helpful; kept behavior identical.
@0xLayer-3 0xLayer-3 requested a review from a team as a code owner October 28, 2025 21:24
@cla-bot
Copy link

cla-bot bot commented Oct 28, 2025

Thank you for your pull request. We require contributors to sign our Contributor License Agreement / Terms and Conditions, and we don't seem to have the users @0xLayer-3 on file. In order for us to review and merge your code, please sign:

  • For individual contribution: our CLA
  • for Bounty submission, if you are an individual: our T&C
  • for Bounty submission, if you are a company: our T&C
    to get yourself added.

If you already signed one of this document, just wait to be added to the bot config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant