Skip to content

Commit

Permalink
deploy: 2750921
Browse files Browse the repository at this point in the history
  • Loading branch information
Cashmaney committed Jan 23, 2024
1 parent 658b4c3 commit 91d5508
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract contract Permissioned is EIP712 {

/// @notice Modifier that requires the provided signature to be signed by the message sender
/// @param permission Data structure containing the public key and the signature to be verified
modifier onlySignedPublicKey(Permission memory permission) {
modifier onlySender(Permission memory permission) {
bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
keccak256("Permissioned(bytes32 publicKey)"),
permission.publicKey
Expand All @@ -34,7 +34,7 @@ abstract contract Permissioned is EIP712 {
/// @notice Modifier that requires the provided signature to be signed by a specific owner address
/// @param permission Data structure containing the public key and the signature to be verified
/// @param owner The expected owner of the public key to match against the recovered signer
modifier onlySignedPublicKeyOwner(Permission memory permission, address owner) {
modifier onlyPermitted(Permission memory permission, address owner) {
bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
keccak256("Permissioned(bytes32 publicKey)"),
permission.publicKey
Expand Down
8 changes: 4 additions & 4 deletions docs/Permissioned.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ constructor() internal
_Constructor that initializes EIP712 domain separator with a name and version
solhint-disable-next-line func-visibility, no-empty-blocks_

### onlySignedPublicKey
### onlySender

```solidity
modifier onlySignedPublicKey(struct Permission permission)
modifier onlySender(struct Permission permission)
```

Modifier that requires the provided signature to be signed by the message sender
Expand All @@ -45,10 +45,10 @@ Modifier that requires the provided signature to be signed by the message sender
| ---- | ---- | ----------- |
| permission | struct Permission | Data structure containing the public key and the signature to be verified |

### onlySignedPublicKeyOwner
### onlyPermitted

```solidity
modifier onlySignedPublicKeyOwner(struct Permission permission, address owner)
modifier onlyPermitted(struct Permission permission, address owner)
```

Modifier that requires the provided signature to be signed by a specific owner address
Expand Down

0 comments on commit 91d5508

Please sign in to comment.