To ensure your smart contracts function as intended, you can use the Stylus demos available in the adventure-layer-l2-scripts repository on GitHub. These demos provide practical examples and testing scenarios to validate your contracts.

Steps to Test Your Contracts

  1. Clone the Repository: First, clone the adventure-layer-l2-scripts repository to your local machine:
  2. Initialize the Environment: Navigate to the stylus-demos directory and set up your environment:
  3. Deploy the Contract: Use the provided script to deploy your contract:
  4. Test the ERC20 Contract: Run the test script to validate the ERC20 contract:
  5. Get Contract ABI: Retrieve the contract ABI using the script provided: