Testing Standards Compliance
Back to Standards and Contracts
Overview
After compiling, verify your contract meets the target standard:
Check manifest — confirm
supportedstandardscontains the expected entries:bashcat build/MyToken/MyToken.manifest.json | jq '.supportedstandards'Verify method signatures — ensure all required methods are present with correct parameter counts. The compiler warns on near-misses.
Test transfer with witness — invoke
transferwith a valid witness scope and verifyRuntime.checkWitness()passes:bashneo-express invoke MyToken transfer \ --account sender -- sender recipient 1000 nullTest payment callbacks — transfer tokens to a contract and verify
onNEP17PaymentoronNEP11Paymentis called.Integration testing — use
neo-expressfor end-to-end testing on a local private network:bashneo-express create neo-express run neo-express contract deploy build/MyToken/MyToken.nef neo-express invoke MyToken symbol
Compiler Warnings Are Your Friend
Address all W1xx warnings before deploying. They indicate patterns that may compile but won't produce a standards-compliant manifest or may behave unexpectedly on Neo N3.
