Skip to content

fix: add missing Soneium and AnimeChain payment token support#1973

Open
Sertug17 wants to merge 1 commit into
ProjectOpenSea:mainfrom
Sertug17:fix/soneium-animechain-payment-tokens
Open

fix: add missing Soneium and AnimeChain payment token support#1973
Sertug17 wants to merge 1 commit into
ProjectOpenSea:mainfrom
Sertug17:fix/soneium-animechain-payment-tokens

Conversation

@Sertug17

Copy link
Copy Markdown

Problem

Chain.Soneium and Chain.AnimeChain were added to the Chain enum but were missing from getOfferPaymentToken() and getListingPaymentToken() switch statements.

This causes a runtime error when attempting to create listings or offers on these chains:
Error: Unknown offer currency for soneium
Error: Unknown listing currency for animechain

Fix

  • Add Chain.Soneium and Chain.AnimeChain to getOfferPaymentToken() returning WETH (0x4200000000000000000000000000000000000006) both chains are OP Stack based
  • Add Chain.Soneium and Chain.AnimeChain to getListingPaymentToken() returning native ETH (0x0000000000000000000000000000000000000000)
  • Add test coverage for both chains

Testing

All 84 existing chain tests pass.

Chain.Soneium and Chain.AnimeChain were present in the Chain enum but
missing from getOfferPaymentToken() and getListingPaymentToken() switch
statements, causing a runtime Error when creating listings or offers on
these chains.

Both chains are OP Stack based:
- Soneium (chain ID 1868): uses canonical OP WETH 0x4200...0006
- AnimeChain (chain ID 69000): uses canonical OP WETH 0x4200...0006

Listing payment token for both is native ETH (0x0000...0000).

Added test coverage for both chains.
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