Skip to content

Docs/b20 implementation - #1774

Open
soheimam wants to merge 1 commit into
masterfrom
docs/b20-implementation
Open

Docs/b20 implementation#1774
soheimam wants to merge 1 commit into
masterfrom
docs/b20-implementation

Conversation

@soheimam

@soheimam soheimam commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What changed? Why?

Added implementation guides for b20 spec

@mintlify

mintlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
base 🟢 Ready View Preview Aug 5, 2026, 7:21 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@roethke roethke left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of the #1766 split. One accuracy issue in the implementation samples.

import {StdPrecompiles} from "base-std/StdPrecompiles.sol";

contract AuditB20Policies is Script {
bytes32[5] internal scopes = [

@roethke roethke Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bytes32[5] scopes array omits SEIZE_RECEIVER_POLICY, a real 6th policy scope (B20Constants.sol, IB20.sol:274). As written, the AuditB20Policies sample silently skips a scope, so anyone copying it would under-audit. Make it bytes32[6] and add B20Constants.SEIZE_RECEIVER_POLICY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants