Skip to content

fix: normalize protocol address checksums#1853

Merged
ryanio merged 1 commit intoProjectOpenSea:mainfrom
kinderjoypresents:fix/protocol-address-checksum-normalization
Jan 13, 2026
Merged

fix: normalize protocol address checksums#1853
ryanio merged 1 commit intoProjectOpenSea:mainfrom
kinderjoypresents:fix/protocol-address-checksum-normalization

Conversation

@kinderjoypresents
Copy link
Contributor

Motivation

The SDK compares a checksummed protocolAddress (via ethers.getAddress) against protocol constants that may not be checksummed (e.g. lowercase). Because the comparison was done as a raw string match, valid protocol addresses could be incorrectly treated as unsupported purely due to address formatting/casing differences.

Solution

Normalize the known protocol constants using ethers.getAddress() before performing comparisons in getSeaportInstance and getSeaportVersion. This ensures all comparisons are checksum-consistent and prevents false negatives when resolving supported protocol addresses/versions.

Normalize protocol constants with ethers.getAddress() before comparing to checksummed inputs to avoid false negatives when constants are not checksummed.
@ryanio
Copy link
Collaborator

ryanio commented Jan 13, 2026

thanks!

@ryanio ryanio merged commit 304f1be into ProjectOpenSea:main Jan 13, 2026
4 of 8 checks passed
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.

2 participants