Skip to content

chore: add AccountCode::interface and use StorageMapKey in Account::get_map_item#3080

Merged
bobbinth merged 5 commits into
nextfrom
pgackst-misc-housekeeping
Jun 13, 2026
Merged

chore: add AccountCode::interface and use StorageMapKey in Account::get_map_item#3080
bobbinth merged 5 commits into
nextfrom
pgackst-misc-housekeeping

Conversation

@PhilippGackstatter

Copy link
Copy Markdown
Contributor

Implements a few small quality of life improvements:

  • Introduce AccountCode::interface(AccountId) so Account / PartialAccount code_interface() no longer duplicate construction (addresses feat: Introduce AccountCodeInterface #2924 (comment)).
  • Type AccountStorage::get_map_item's key as StorageMapKey. This was an oversight in an earlier refactor.
  • Renames the TransactionEvent::AuthRequest field to pub_key_commitment: PublicKeyCommitment.

claude added 3 commits June 11, 2026 10:14
Hoist the `AccountCodeInterface` construction onto `AccountCode` so
`Account::code_interface` and `PartialAccount::code_interface` no longer
duplicate the procedure-set collection and `expect` invariant.

Addresses PR #2924 review comment r3392175548.
Strengthen the signature of `AccountStorage::get_map_item` from a raw
`Word` to `StorageMapKey` so callers cannot accidentally pass an arbitrary
word, and adjust call sites to use the existing `StorageMapKey`
constructors (`from_index`, `from_raw`, `empty`).
Rename the `pub_key_hash: Word` field on `TransactionEvent::AuthRequest`
to `pub_key_commitment: PublicKeyCommitment` so the event surfaces the
domain newtype directly and the executor no longer has to wrap the raw
word at the call site to the authenticator.
@PhilippGackstatter PhilippGackstatter added the pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority label Jun 11, 2026
@PhilippGackstatter PhilippGackstatter force-pushed the pgackst-misc-housekeeping branch from 2481b18 to ab93eae Compare June 11, 2026 10:54
@PhilippGackstatter PhilippGackstatter marked this pull request as ready for review June 11, 2026 11:07

@bobbinth bobbinth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@bobbinth bobbinth added this pull request to the merge queue Jun 13, 2026
Merged via the queue into next with commit 07f52bd Jun 13, 2026
22 of 23 checks passed
@bobbinth bobbinth deleted the pgackst-misc-housekeeping branch June 13, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants