Skip to content

Phở Founder Lifetime: $59 once, 1 year of Phở AI included. Limited seats. See the offer

Engineering · Skill

Web3 Smart Contract Testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

Open in Phở

What the skill covers

The sections of its instructions, in order.

  1. 01 When to Use This Skill
  2. 02 Hardhat Testing Setup
  3. 03 Unit Testing Patterns
  4. 04 Foundry Testing (Forge)
  5. 05 Advanced Testing Patterns
  6. Snapshot and Revert
  7. Mainnet Forking
  8. Impersonating Accounts
  9. 06 Additional patterns and templates

Reference files

1 file Phở can open while it uses the skill.

  • references/details.md

More in Web3 and game development

  • DeFi Protocol Templates

    Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract…

  • NFT Standards

    Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT…

  • Solidity Security

    Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing…

  • Godot GDScript Patterns

    Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization. Use when building Godot games, implementing game systems, or learning GDScript best…

  • Unity ECS Patterns

    Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or…

Similar engineering skills

Frequently asked questions

What does Web3 Smart Contract Testing do?

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

Is Web3 Smart Contract Testing free to use?

Yes. Web3 Smart Contract Testing is published by Seth Hobson under the MIT licence, and you can use it with a free Phở account.

How do I use Web3 Smart Contract Testing in Phở?

Press Open in Phở, then Try to apply it to your next message, or add the Web3 and game development set so Phở loads it whenever a request matches.

Does Web3 Smart Contract Testing need other tools?

No. It works in a normal Phở chat with what you type or upload.

Copied unchanged from wshobson/agents at commit 7e2fb55 and credited to Seth Hobson, who is not affiliated with Phở. The full instructions and licence text ship with the skill inside Phở.