Skip to content

Commit

Permalink
onlyDelegatecall
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadaa committed Jan 19, 2024
1 parent 7049ce4 commit 683cdb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ contract WorldRegistrationSystem is System, IWorldErrors, LimitedCallContext {
* @dev Deletes the new delegation from the caller to the specified delegatee
* @param delegatee The address of the delegatee
*/
function unregisterDelegation(address delegatee) public {
function unregisterDelegation(address delegatee) public onlyDelegatecall {
// Delete the delegation control contract address
UserDelegationControl.deleteRecord({ delegator: _msgSender(), delegatee: delegatee });
}
Expand Down

0 comments on commit 683cdb3

Please sign in to comment.