Skip to content

test: TIP-1011 enhanced access key permissions coverage#3430

Closed
decofe wants to merge 5 commits intomainfrom
georgen/tip1011-coverage
Closed

test: TIP-1011 enhanced access key permissions coverage#3430
decofe wants to merge 5 commits intomainfrom
georgen/tip1011-coverage

Conversation

@decofe
Copy link
Copy Markdown
Member

@decofe decofe commented Apr 2, 2026

Tests from the original PR are no longer applicable — #3463 moved
validate_against_keychain, call_scope_allows_call, and
validate_keychain_version out of the pool validator into the EVM layer.

This PR now only contains the 4 is_bad_transaction classification tests
that were already on main, plus the authorization list limit tests added
by #3384.

Co-Authored-By: grandizzy 38490174+grandizzy@users.noreply.github.com

Prompted by: georgen

Adds 19 unit tests targeting mutation test survivors in key_authorization,
call_scope_allows_call, and validate_t3_key_authorization_restrictions.

Co-authored-by: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4d32-4300-71d9-8d91-632c2147c49d
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 2, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
tempo-primitives: patch
---

Added tests for `has_periodic_limits` and `has_call_scopes` methods on key authorization.

Add changelog to commit this to your branch.

Group call_scope tests into single test_call_scope_allows_call_branches,
t3 restriction tests into test_t3_key_authorization_restriction_rejections,
and pre-T3 gate tests into test_pre_t3_rejects_tip1011_fields. Extract
allows() and abi_input() helpers plus t3_validate() to reduce boilerplate.

Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019d4d32-4300-71d9-8d91-632c2147c49d
@grandizzy grandizzy marked this pull request as ready for review April 2, 2026 08:54
@jenpaff jenpaff requested a review from 0xrusowsky April 8, 2026 15:49
decofe and others added 2 commits April 8, 2026 16:15
Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
@grandizzy grandizzy enabled auto-merge April 8, 2026 16:16
The unify-validation refactor (#3463) moved validate_against_keychain,
call_scope_allows_call, and validate_keychain_version out of the pool
validator. These tests now belong in the EVM validation layer.

Co-Authored-By: grandizzy <38490174+grandizzy@users.noreply.github.com>
@grandizzy grandizzy disabled auto-merge April 8, 2026 16:58
@grandizzy grandizzy closed this Apr 8, 2026
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.

3 participants