← All lessons
05

REHEARSE THE REAL THING · 11 min

Test, deploy, verify

Turn a local contract into a verifiable testnet deployment.

05.1

Test invariants locally

Automated tests check the name, symbol, decimals, supply recipient, ordinary transfers, and the absence of privileged methods before a wallet signs anything.

05.2

Let the wallet own the signature

The owner-only deployment page requests the testnet, shows the connected address and fixed parameters, then asks the browser wallet to sign. The private key never enters this project.

05.3

Verify and read back

After deployment, publish the exact source and compiler settings on the explorer. Then read contract values through the RPC and compare them with the intended specification.

KNOWLEDGE CHECK

Three quick sniffs.

01Who should sign the deployment?
02What should never be pasted into a deploy page?
03What follows deployment?