2025 07 16 721 balance#364
Conversation
WalkthroughThe changes activate and update the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Interpreter
participant LibOpERC721BalanceOf
participant ERC721Token
User->>Interpreter: Evaluate "erc721-balance-of" opcode with StackItem[] inputs
Interpreter->>LibOpERC721BalanceOf: Call run(state, operand, stackTop)
LibOpERC721BalanceOf->>ERC721Token: Call balanceOf(account)
ERC721Token-->>LibOpERC721BalanceOf: Return balance (uint256)
LibOpERC721BalanceOf->>LibDecimalFloat: Convert balance to decimal float
LibOpERC721BalanceOf-->>Interpreter: Push result onto stack
Interpreter-->>User: Return evaluation result
sequenceDiagram
participant User
participant Interpreter
participant LibOpUint256ERC721BalanceOf
participant ERC721Token
User->>Interpreter: Evaluate "uint256-erc721-balance-of" opcode with StackItem[] inputs
Interpreter->>LibOpUint256ERC721BalanceOf: Call referenceFn(state, operand, StackItem[] inputs)
LibOpUint256ERC721BalanceOf->>ERC721Token: Call balanceOf(account)
ERC721Token-->>LibOpUint256ERC721BalanceOf: Return balance (uint256)
LibOpUint256ERC721BalanceOf-->>Interpreter: Return StackItem[] output (balance)
Interpreter-->>User: Return evaluation result
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (4)
🧰 Additional context used🧠 Learnings (3)📓 Common learningssrc/lib/op/erc721/LibOpERC721BalanceOf.sol (1)test/src/lib/op/erc721/LibOpUint256ERC721BalanceOf.t.sol (1)🔇 Additional comments (16)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Motivation
Solution
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit
New Features
Bug Fixes
Tests