This guide shows how to verify smart contracts on Plasma using Foundry, Hardhat, and Ethers.js. Verification makes contract source code publicly accessible on block explorers and ensures transparency for users.
forge verify-contract
command for contract verification.
foundry.toml
includes the verification settings:
--watch
flag. Look for:
@nomicfoundation/hardhat-verify
plugin.
hardhat.config.js
to include verification settings:
scripts/verify.js
:
verify-ethers.js
:
cast
tool:
check-verification.js
:
cast abi-encode
to verify encoding.