@@ -388,7 +388,7 @@ contract NameRegistry is
388
388
*
389
389
* @param commit The commitment hash to be persisted on-chain
390
390
*/
391
- function makeCommit (bytes32 commit ) external payable {
391
+ function makeCommit (bytes32 commit ) external {
392
392
if (trustedOnly == 1 ) revert Invitable ();
393
393
394
394
unchecked {
@@ -818,7 +818,7 @@ contract NameRegistry is
818
818
* @param tokenId The uint256 representation of the fname
819
819
* @param recovery The address which can recover the fname (set to 0x0 to disable recovery)
820
820
*/
821
- function changeRecoveryAddress (uint256 tokenId , address recovery ) external payable whenNotPaused {
821
+ function changeRecoveryAddress (uint256 tokenId , address recovery ) external whenNotPaused {
822
822
if (ownerOf (tokenId) != _msgSender ()) revert Unauthorized ();
823
823
824
824
recoveryOf[tokenId] = recovery;
@@ -838,7 +838,7 @@ contract NameRegistry is
838
838
* @param tokenId The uint256 representation of the fname
839
839
* @param to The address to transfer the fname to, which cannot be address(0)
840
840
*/
841
- function requestRecovery (uint256 tokenId , address to ) external payable whenNotPaused {
841
+ function requestRecovery (uint256 tokenId , address to ) external whenNotPaused {
842
842
if (to == address (0 )) revert InvalidRecovery ();
843
843
844
844
// Invariant 3 ensures that a request cannot be made after ownership change without consent
@@ -865,7 +865,7 @@ contract NameRegistry is
865
865
*
866
866
* @param tokenId The uint256 representation of the fname
867
867
*/
868
- function completeRecovery (uint256 tokenId ) external payable {
868
+ function completeRecovery (uint256 tokenId ) external {
869
869
if (block .timestamp >= expiryOf[tokenId]) revert Expired ();
870
870
871
871
// Invariant 3 ensures that a request cannot be completed after ownership change without consent
@@ -890,7 +890,7 @@ contract NameRegistry is
890
890
*
891
891
* @param tokenId The uint256 representation of the fname
892
892
*/
893
- function cancelRecovery (uint256 tokenId ) external payable {
893
+ function cancelRecovery (uint256 tokenId ) external {
894
894
address sender = _msgSender ();
895
895
896
896
// Perf: super.ownerOf is called instead of ownerOf since cancellation has no undesirable
@@ -945,7 +945,7 @@ contract NameRegistry is
945
945
*
946
946
* @param _trustedCaller The address of the new trusted caller
947
947
*/
948
- function changeTrustedCaller (address _trustedCaller ) external payable {
948
+ function changeTrustedCaller (address _trustedCaller ) external {
949
949
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
950
950
if (! hasRole (ADMIN_ROLE, msg .sender )) revert NotAdmin ();
951
951
trustedCaller = _trustedCaller;
@@ -955,7 +955,7 @@ contract NameRegistry is
955
955
/**
956
956
* @notice Disables registerTrusted and enables register calls from any address.
957
957
*/
958
- function disableTrustedOnly () external payable {
958
+ function disableTrustedOnly () external {
959
959
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
960
960
if (! hasRole (ADMIN_ROLE, msg .sender )) revert NotAdmin ();
961
961
delete trustedOnly;
@@ -967,7 +967,7 @@ contract NameRegistry is
967
967
*
968
968
* @param _vault The address of the new vault
969
969
*/
970
- function changeVault (address _vault ) external payable {
970
+ function changeVault (address _vault ) external {
971
971
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
972
972
if (! hasRole (ADMIN_ROLE, msg .sender )) revert NotAdmin ();
973
973
vault = _vault;
@@ -979,7 +979,7 @@ contract NameRegistry is
979
979
*
980
980
* @param _pool The address of the new pool
981
981
*/
982
- function changePool (address _pool ) external payable {
982
+ function changePool (address _pool ) external {
983
983
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
984
984
if (! hasRole (ADMIN_ROLE, msg .sender )) revert NotAdmin ();
985
985
pool = _pool;
@@ -995,7 +995,7 @@ contract NameRegistry is
995
995
*
996
996
* @param _fee The new yearly fee
997
997
*/
998
- function changeFee (uint256 _fee ) external payable {
998
+ function changeFee (uint256 _fee ) external {
999
999
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
1000
1000
if (! hasRole (TREASURER_ROLE, msg .sender )) revert NotTreasurer ();
1001
1001
@@ -1009,7 +1009,7 @@ contract NameRegistry is
1009
1009
*
1010
1010
* @param amount The amount of ether to withdraw
1011
1011
*/
1012
- function withdraw (uint256 amount ) external payable {
1012
+ function withdraw (uint256 amount ) external {
1013
1013
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
1014
1014
if (! hasRole (TREASURER_ROLE, msg .sender )) revert NotTreasurer ();
1015
1015
@@ -1028,7 +1028,7 @@ contract NameRegistry is
1028
1028
/**
1029
1029
* @notice pause the contract and prevent registrations, renewals, recoveries and transfers of names.
1030
1030
*/
1031
- function pause () external payable {
1031
+ function pause () external {
1032
1032
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
1033
1033
if (! hasRole (OPERATOR_ROLE, msg .sender )) revert NotOperator ();
1034
1034
_pause ();
@@ -1037,7 +1037,7 @@ contract NameRegistry is
1037
1037
/**
1038
1038
* @notice unpause the contract and resume registrations, renewals, recoveries and transfers of names.
1039
1039
*/
1040
- function unpause () external payable {
1040
+ function unpause () external {
1041
1041
// avoid _msgSender() since meta-tx are unnecessary here and increase attack surface area
1042
1042
if (! hasRole (OPERATOR_ROLE, msg .sender )) revert NotOperator ();
1043
1043
_unpause ();
0 commit comments