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

Copy link
Copy Markdown
Contributor

What changed? Why?

Added implementation guides for b20 spec

@mintlify

mintlifyBot commented Aug 5, 2026

Copy link
Copy Markdown

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

ProjectStatusPreviewUpdated (UTC)
base🟢 ReadyView PreviewAug 5, 2026, 7:21 PM

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

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

RequirementStatusMore Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot0
1 if user is external0
2 if repo is sensitive0
From .codeflow.yml1
Additional review requirements
Show calculation
Max0
0
From CODEOWNERS0
Global minimum0
Max 1
1
1 if commit is unverified0
Sum1

@roethkeroethke 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 = [

@roethkeroethkeAug 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 freeto 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

@soheimam@cb-heimdall@roethke