Repository navigation
fix(tempo): keep absent and empty KeyAuthorization limits distinct - #506
Conversation
`toTuple` encoded skipped `limits` as `[]` whenever call scopes followed, which the node decodes as `Some([])` (deny-all), so an unlimited scoped key became a deny-all key. `fromTuple` dropped an explicit `[]`, so a deny-all key re-encoded as unlimited. Both now match the node: absent is `0x80` (or omitted), explicit empty is `0xc0`. Adds node-encoded vectors. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3b4e74ee9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Widened the limits and calls tuple slots to include the `'0x'` placeholder, documented `undefined` (unlimited) versus `[]` (deny-all) on `limits`, and moved the node-vector tests into their function suites. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn
The scope rejection tests built keys without `limits`, which previously encoded as deny-all, so the node refused them for spending rather than scope. Unlimited scoped keys now reach execution, where out-of-scope calls revert. Assert the reverted receipt, and have the wrong-contract case call a token the account can spend from, so the revert isolates the scope check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01F3D21FWys7Bt3YdQhgH8vn
|
12ff143 changes those tests to assert a reverted receipt. The wrong-contract case used to call a token the account holds no balance of, so it reverted even without a scope. It now scopes the key to Generated by Claude Code |
No description provided.