AUTHORED FIXTURE · ACTUAL OFFLINE RUN · NO LOGIN

A real Solidity review example: source, findings, and limits

Inspect actual static-analysis output from an authored Solidity fixture, source lines, manual interpretation, and a before/after comparison. No login required.

Crypto winter editor · AI-assisted presentation with manual review · Executed

This is actual engine output from an authored teaching fixture. The contract was not deployed and handles no real assets. This run did not use a model; see the exact scope below.
Before changes · 1 source file2

Static rule signals, both pointing to line 16

After changes · 1 source file0

These rules did not trigger again; this is not a safety guarantee

Inspect the input before the conclusions

Before

1// SPDX-License-Identifier: MIT2pragma solidity ^0.8.20;34// Authored educational fixture. No deployment or asset-transfer functions.5contract TreasurySettings {6    address public owner;7    address public treasury;89    constructor(address initialTreasury) {10        require(initialTreasury != address(0), "zero treasury");11        owner = msg.sender;12        treasury = initialTreasury;13    }1415    function setTreasury(address nextTreasury) external {16        treasury = nextTreasury;17    }18}

SHA-256 b5d18559d7196fce9ca37de1d70315be6d129a3ba5469bbfbfb9dbf8c7a5a6b9

Comparison changes

1// SPDX-License-Identifier: MIT2pragma solidity ^0.8.20;34// Authored educational fixture. This comparison does not establish audit safety.5contract TreasurySettings {6    address public owner;7    address public treasury;89    constructor(address initialTreasury) {10        require(initialTreasury != address(0), "zero treasury");11        owner = msg.sender;12        treasury = initialTreasury;13    }1415    function setTreasury(address nextTreasury) external {16        require(msg.sender == owner, "owner only");17        require(nextTreasury != address(0), "zero treasury");18        treasury = nextTreasury;19    }20}

SHA-256 b2a7bd5aa60effb06db21133adf7d1c463b0af6a5eff109d42cb1f4c7cfa12bd

Engine signals and manual interpretation

Engine severity: HIGH · heuristic

Sensitive state is mutable from a public function

Rule
unauthorized-state-change
Location
TreasurySettings.sol · L16 · setTreasury
Engine summary
setTreasury updates sensitive state without an obvious authorization check.

Manual review: setTreasury has no caller check, so any caller can assign treasury. The fixture has no asset-transfer function; no theft or monetary loss is claimed.

Engine severity: HIGH · heuristic

Critical address update does not appear to reject the zero address

Rule
missing-zero-address-check
Location
TreasurySettings.sol · L16 · setTreasury
Engine summary
setTreasury writes an important address field without an obvious zero-address validation.

Manual review: nextTreasury is not checked against address(0), allowing a zero configuration. Downstream impact depends on other code using it; this fixture does not establish asset loss.

What changed and what was observed

Caller authorization and a non-zero-address check were added before assignment. Re-running the same rules on the changed single file produced 0 signals instead of 2. This comparison covers these two patterns only; it does not verify inheritance, proxies, governance, or financial flows.

What this run actually covered

Download the inputs and public output

Fixture source uses the MIT license. This is a public presentation of actual run results. Findings require project-specific human review.

Decide whether to submit your source after reviewing the example

Crypto winter is the website, PlainKit is its free toolbox, and Crypto winter is its blockchain research project. Each has a distinct purpose and verification scope.

See source-review workflow and pricing →

Developer practice