Skip to content

[UPDATE] Updated Permission Module#65

Merged
aandrewchung merged 6 commits intomainfrom
andrew/update-permission-module
Apr 21, 2025
Merged

[UPDATE] Updated Permission Module#65
aandrewchung merged 6 commits intomainfrom
andrew/update-permission-module

Conversation

@aandrewchung
Copy link
Contributor

Description

  • Updated set_permission()
  • Added 3 new fns: set_all_permissions(), create_set_permission_signature(), _check_is_registered()

Test Plan

  • Ensure all sanity integration tests pass

Related Issue

n/a

Notes

  • Does not include batch fns

Copy link
Contributor

@DracoLi DracoLi left a comment

Choose a reason for hiding this comment

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

looks good. comments are non-blocking.

ip_id,
signer,
to,
Web3.keccak(text=func)[:4] if func else b'\x00\x00\x00\x00',
Copy link
Contributor

Choose a reason for hiding this comment

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

can b'\x00\x00\x00\x00' be replace with bytes(4)?

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: i saw this is used a few times here, maybe we can extract this function selector out? something like get_selector?

@aandrewchung aandrewchung merged commit bc617f3 into main Apr 21, 2025
10 checks passed
@aandrewchung aandrewchung deleted the andrew/update-permission-module branch April 21, 2025 16:36
@Razornero7
Copy link

Looks good

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.

4 participants