From 9d8ad8333a604da0d175f86ae02037d6868d2b89 Mon Sep 17 00:00:00 2001 From: TuDo1403 Date: Thu, 11 Jul 2024 14:52:59 +0700 Subject: [PATCH] fix(OwnedMulticaller): remove multi mint fn --- src/utils/OwnedMulticaller.sol | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/utils/OwnedMulticaller.sol b/src/utils/OwnedMulticaller.sol index da3d149..87ff684 100644 --- a/src/utils/OwnedMulticaller.sol +++ b/src/utils/OwnedMulticaller.sol @@ -9,23 +9,10 @@ contract OwnedMulticaller is Ownable { using ErrorHandler for bool; constructor(address owner_) { - require(owner_ != address(0), "owner_ == address(0x0)"); + require(owner_ != address(0), "OwnedMulticaller: owner_ is null"); _transferOwnership(owner_); } - function multiMint( - INSUnified rns, - uint256 parentId, - address resolver, - uint64 duration, - address[] calldata tos, - string[] calldata labels - ) external onlyOwner { - for (uint256 i; i < labels.length; ++i) { - rns.mint(parentId, labels[i], resolver, tos[i], duration); - } - } - function multicall(address[] calldata tos, bytes[] calldata callDatas, uint256[] calldata values) external payable @@ -33,7 +20,7 @@ contract OwnedMulticaller is Ownable { returns (bool[] memory results, bytes[] memory returnDatas) { uint256 length = tos.length; - require(length == callDatas.length && length == values.length, "invalid length"); + require(length == callDatas.length && length == values.length, "OwnedMulticaller: mismatch length"); results = new bool[](length); returnDatas = new bytes[](length);