Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value out-of-bounds upon setRegisteredSender #4170

Open
RielJ opened this issue Nov 26, 2024 · 0 comments
Open

Value out-of-bounds upon setRegisteredSender #4170

RielJ opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RielJ
Copy link

RielJ commented Nov 26, 2024

Description and context

When using wormhole-solidity-sdk and following this example repo https://github.com/wormhole-foundation/native-token-transfers. This happens, When using a chain where chainId exceeds uint16, the setRegisteredSender will fail.

Steps to reproduce

  1. Deploy CrossChainSender and CrossChainReceiver
  2. Use chains that has a chainId greater than uint16
  3. Trigger the setRegisteredSender

Experienced behavior

I have this error

An unexpected error occurred: value out-of-bounds (argument="sourceChain", value=421614, code=INVALID_ARGUMENT, version=6.13.4)

When using Arbitrum sepolia testnet

Expected behavior

It should determine and allow any chainId values.

Solution recommendation

Change the uint16 on Base.sol

  mapping(uint16 => bytes32) registeredSenders;
@RielJ RielJ added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant