Skip to content

fix: update calculateAtomId docs to require Hex type input#81

Open
jonathanprozzi wants to merge 1 commit into
mainfrom
claude/slack-session-1qvEU
Open

fix: update calculateAtomId docs to require Hex type input#81
jonathanprozzi wants to merge 1 commit into
mainfrom
claude/slack-session-1qvEU

Conversation

@jonathanprozzi

Copy link
Copy Markdown
Member

Summary

  • Updated calculateAtomId function signature to show it requires Hex type input instead of string
  • Added toHex import from viem to all code examples
  • Fixed all calculateAtomId() calls to use toHex() to convert strings to hex format

This fixes the documentation mismatch where examples showed passing plain strings like 'developer' or 'NewAtom', but the actual SDK implementation requires a hex-encoded string (0x-prefixed).

Files changed:

  • docs/_data/intuition-sdk/atoms-guide.md
  • docs/_data/intuition-sdk/examples/find-existing-entities.md

Test plan

  • Verify the updated code examples compile without lint errors
  • Confirm the function signature matches the actual SDK implementation

Slack thread: https://intuition-systems.slack.com/archives/C0AFT55SQF4/p1776457332794299?thread_ts=1776456051.552199&cid=C0AFT55SQF4

https://claude.ai/code/session_01M9noPs9691tdGVHwPdbxwT

The calculateAtomId function requires a Hex type (0x-prefixed string) as input,
not a plain string. Updated all examples to use toHex() from viem to convert
strings before passing to calculateAtomId.

https://claude.ai/code/session_01M9noPs9691tdGVHwPdbxwT
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.

2 participants