fix: harden demo lifecycle and scanner
This commit is contained in:
+23
-2
@@ -91,11 +91,32 @@ forge test --match-test 'test(ProxyCannotBeInitializedTwice|ImplementationCannot
|
||||
# OpenZeppelin ReentrancyGuardReentrantCall
|
||||
forge test --match-test testDepositPropagatesNestedRevertAtomicallyWhenConfigured -vv
|
||||
|
||||
# Script UnsupportedChain (the test deliberately uses a rejected chain)
|
||||
# DemoScript.UnsupportedChain (the test deliberately uses a rejected chain)
|
||||
forge test --match-test testUnsupportedChainsAreRejectedBeforeBroadcast -vv
|
||||
|
||||
# ManifestChainMismatch and MissingCode
|
||||
# DemoScript.ManifestChainMismatch and DemoScript.MissingCode
|
||||
forge test --match-test 'test(WrongManifestChain|AddressWithoutCode)IsRejected' -vv
|
||||
|
||||
# DemoScript.InvalidDeploymentBlock
|
||||
forge test --match-test testActiveManifestRejectsDeploymentBlockZero -vv
|
||||
|
||||
# DemoScript.InvalidManifestSchema
|
||||
forge test --match-test testLegacyParallelActorManifestIsRejected -vv
|
||||
|
||||
# DemoScript.InvalidActorConfiguration
|
||||
forge test --match-test testAnvilManifestRequiresOwnerAtActorZero -vv
|
||||
|
||||
# DemoScript.UnexpectedState example payload: label, expected, actual
|
||||
cast calldata 'UnexpectedState(string,uint256,uint256)' 'reserves' 1400000000 1399000000
|
||||
|
||||
# DemoScript.UnexpectedAddress, including expected/actual implementation addresses
|
||||
forge test --match-test testCheckStateRejectsManifestImplementationMismatch -vv
|
||||
|
||||
# CheckState.Insolvent example payload: reserves below ledger liabilities
|
||||
cast calldata 'Insolvent(uint256,uint256)' 1399000000 1400000000
|
||||
|
||||
# CheckState.UnknownStage example payload
|
||||
cast calldata 'UnknownStage(string)' 'mystery'
|
||||
```
|
||||
|
||||
Finish by running `make verify`; it combines unit, fuzz, invariant, script, process-safety, scanner, and web gates.
|
||||
|
||||
Reference in New Issue
Block a user