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

allow contractAddress as an opt when initializing sleuth #7

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

aryanbhasin
Copy link
Contributor

Allow passing in contractAddress manually as an option when initializing Sleuth.

The current implementation assumes a deterministic address for all chains - because it assumes the same deployer address is used with the same nonce (0).

While this was true for all chains so far, our deployment on Mantle used a nonce of 4 (we used a few transactions to get the native token), which led to the contract being deployed on a different address than the usual 0xC6a613FdaC3465D250DF7FF3CC21Bec86Eb8A372.

On the client side we'd then make an exception for Mantle and pass in that new address as a flag.

@aryanbhasin aryanbhasin requested a review from hayesgm November 27, 2024 18:20
@hayesgm hayesgm merged commit 0d329a0 into main Nov 27, 2024
1 check passed
@hayesgm hayesgm deleted the aryan/allow-contract-address-opts-constructor branch November 27, 2024 20:21
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