From 7170b2d222917817a52bbf0601d3890c37c02733 Mon Sep 17 00:00:00 2001 From: Kahn Date: Fri, 1 Sep 2023 09:56:21 +0800 Subject: [PATCH] feat: improved contract version function. --- contracts/src/Registration.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/Registration.sol b/contracts/src/Registration.sol index 46be4d7..08c35fe 100644 --- a/contracts/src/Registration.sol +++ b/contracts/src/Registration.sol @@ -119,7 +119,7 @@ contract EIP4824Registration is IEIP4824, AccessControl { super.supportsInterface(interfaceId); } - function version () external returns(string){ + function version () external pure returns(string memory){ return "1.0.0"; } } @@ -281,7 +281,7 @@ contract EIP4824RegistrationSummoner { } } - function version () external returns(string){ + function version () external pure returns(string memory){ return "1.0.0"; } }