This repository contains the reference implementation of ERC-6551.
This project is under active development and may undergo changes until ERC-6551 is finalized.
The current ERC6551Registry address is 0x284be69BaC8C983a749956D7320729EB24bc75f9.
For the most recently deployed version of these contracts, see the v0.3.0 release. We recommend this version for any production usage.
If you want to use erc6551/reference as a dependency in another project, you can add it using forge install:
forge install erc6551=erc6551/referenceThis will add erc6551/reference as a git submodule in your project. For more information on managing dependencies, refer to the Foundry dependencies guide.
You will need to have Foundry installed on your system. Please refer to the Foundry installation guide for detailed instructions.
To use this repository, first clone it:
git clone https://github.com/erc6551/reference.git
cd contractsThen, install the dependencies:
forge installTo run the tests, use the forge test command:
forge testFor more information on writing and running tests, refer to the Foundry testing guide.
0.2.1
- Making examples' functions
virtualandpublicso that the examples can be used as a base for more advanced contracts