Flow Core Contract

QuantstampCode version: not recorded (see the report)

Quantstamp reviewed Flow.com (Flow Core Contract) on 25 Feb 2026: 1 finding, 0 critical; it is marked fixed.

No open critical findings
Open the reportOpen Flow.com’s security record

Report hosted on certificate.quantstamp.com.

Trustblock does not review code.

Findings1

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High000
Medium000
Low001
LowLoose hex prefix check in `addressFromString` allows silent address misinterpretationFixed

`addressFromString()` detects the `0x` prefix by only checking the second character (`asHex[1] == "x"`), not the first. A 42-character string where the second character is "x" but the first is not "0" (e.g., "Ax...", "1x...") will have its first two characters silently stripped, producing a valid but unintended 20-byte address. ```cadence var withoutPrefix = (asHex[1] == "x" ? asHex.slice(from: 2, upTo: asHex.length) : asHex).toLower() ``` Separately, a 42-character input where `asHex[1] != "x"` passes the full string to `decodeHex()`, producing 21 bytes. The subsequent `toConstantSized<[UInt8; 20]>()` returns `nil`, and the force-unwrap (`!`) panics with a generic runtime error rather than the function's own descriptive precondition message.

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Part of Flow.com’s security record

Flow.com
Audits1 audit by 1 firmLast audit Feb 2026, by Quantstamp.
Critical findingsNo open critical findingsIn 1 report.
Open Flow.com’s security record

Security firm

Quantstamp

236 projects reviewed · 332 reports · latest Oct 2026

See Quantstamp’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us