fix: resolve return type for createHandle

This commit is contained in:
Josh Stevens
2024-02-01 12:02:43 +00:00
parent a15f198ce4
commit 2b3f74e6f4

View File

@@ -99,7 +99,7 @@ contract PermissonlessCreator is Ownable {
return _createProfileWithHandle(createProfileParams, handle, delegatedExecutors);
}
function createHandle(address to, string calldata handle) external payable returns (uint256 handleId) {
function createHandle(address to, string calldata handle) external payable returns (uint256) {
if (msg.value != handleCreationCost) {
revert InvalidFunds();
}
@@ -114,7 +114,7 @@ contract PermissonlessCreator is Ownable {
address to,
string calldata handle,
uint256 linkToProfileId
) external onlyCredit returns (uint256 handleId) {
) external onlyCredit returns (uint256) {
_checkAndRedeemCredit(msg.sender);
_validateHandleAvailable(handle);