Skip to content

fix: validate multicall calldata inputs - #162

Merged
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
silentgeckoaudit3801:fix/multicall-calldata-validation-157
Jul 30, 2026
Merged

fix: validate multicall calldata inputs#162
Lakes41 merged 1 commit into
Adamantine-guild:mainfrom
silentgeckoaudit3801:fix/multicall-calldata-validation-157

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown
Contributor

Closes #157.

Summary

  • add isValidHexData for 0x-prefixed, byte-aligned raw calldata checks
  • throw a typed ValidationError synchronously before aggregate3 payload construction when calldata is malformed
  • cover missing prefix, odd-length calldata, invalid hex characters, and uppercase valid hex in Multicall tests

Validation

  • vitest run tests/core/Multicall.test.ts (5 tests passed)
  • git diff --check

@Lakes41
Lakes41 merged commit 918384d into Adamantine-guild:main Jul 30, 2026
1 check passed
@silentgeckoaudit3801

Copy link
Copy Markdown
Contributor Author

Thanks for merging this. This and #161 cover the accepted #157 and #156 Whitechain SDK contributions.

Could you point me to the official GrantFox / Maybe Rewarded claim or payout step for these merged contributions? I?m not posting any private payment details publicly unless there is a documented process for that.

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.

Validate and sanitize raw calldata inputs before transaction construction

2 participants