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

Moonbeam XC20 Support #3436

Closed
gtsui opened this issue Oct 3, 2022 · 2 comments
Closed

Moonbeam XC20 Support #3436

gtsui opened this issue Oct 3, 2022 · 2 comments
Labels
A-evm Area: EVM C-forge Command: forge T-feature Type: feature

Comments

@gtsui
Copy link

gtsui commented Oct 3, 2022

Component

Forge

Describe the feature you would like

Moonbeam Network has this concept of XC20 which are custom precompiles that are meant to mimic ERC20 interface:

https://docs.moonbeam.network/builders/xcm/xc20/overview/

Unfortunately it looks like when doing mainnet fork tests on forge that XC20 contract addresses are not supported. Is this something that can be added as a new feature and what work needs to be done to make it possible?

Foundry is an awesome project and itd be great for the tool be supported fully for us devs building on Moonbeam Network

Additional context

No response

@gtsui gtsui added the T-feature Type: feature label Oct 3, 2022
@gakonst gakonst added this to Foundry Oct 3, 2022
@gakonst gakonst moved this to Todo in Foundry Oct 3, 2022
@mattsse
Copy link
Member

mattsse commented Oct 3, 2022

you can patch a precompile contract by deploying it at the specific address via. get(Deployed)Code + etch

Example: https://book.getfoundry.sh/cheatcodes/get-deployed-code

@rkrasiuk rkrasiuk added A-evm Area: EVM C-forge Command: forge labels Oct 4, 2022
@DaniPopes
Copy link
Member

We currently only support mainnet precompiles which are implemented in Revm, and there's no way to configure this in Foundry. See also #748.

@github-project-automation github-project-automation bot moved this from Todo to Done in Foundry Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-evm Area: EVM C-forge Command: forge T-feature Type: feature
Projects
Archived in project
Development

No branches or pull requests

4 participants