Skip to content

fix(eth1wrap): accept non-checksummed ERC-1271 contract addresses - #641

Open
iamquang95 wants to merge 1 commit into
mainfrom
feat/fix-626
Open

fix(eth1wrap): accept non-checksummed ERC-1271 contract addresses#641
iamquang95 wants to merge 1 commit into
mainfrom
feat/fix-626

Conversation

@iamquang95

Copy link
Copy Markdown
Collaborator

Fix #626

The operator contract address was parsed with Address::parse_checksummed, so lowercase addresses — the common shape in cluster definitions — failed before the ERC-1271 call, while charon accepts any casing. Parse via FromStr instead (case-insensitive, no EIP-55 check). Non-hex/wrong-length input is still rejected, unlike charon's silent zero-padding.

Also backfills the crate's tests (1 → 6): casing leniency, malformed rejection, magic-value branches, call timeout, Connected construction.

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.

ERC-1271 contract address requires an EIP-55 checksum — Charon accepts any casing

1 participant