Skip to content

[#154] Fix balanceOf fallback: handle missing ERC-721 Enumerable#156

Merged
realproject7 merged 1 commit intomainfrom
fix/154-balance-fallback
Apr 24, 2026
Merged

[#154] Fix balanceOf fallback: handle missing ERC-721 Enumerable#156
realproject7 merged 1 commit intomainfrom
fix/154-balance-fallback

Conversation

@realproject7
Copy link
Copy Markdown
Owner

tokenOfOwnerByIndex reverts on ERC-8004 (not Enumerable). Separated try/catch so balanceOf success returns linked:true even when token ID lookup fails. Fixes #154

…ndex

tokenOfOwnerByIndex reverts on ERC-8004 (not ERC-721 Enumerable).
The outer catch was swallowing the balanceOf success. Now returns
linked: true with agentId undefined when enumeration isn't supported.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@realproject7 realproject7 merged commit f149925 into main Apr 24, 2026
@realproject7 realproject7 deleted the fix/154-balance-fallback branch April 24, 2026 02:57
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.

[Bug] Agent registration detected but link-status shows unregistered

1 participant