Skip to content

Commit 06dee01

Browse files
author
Yash Agrawal
committed
feat: minor fix
1 parent 58cf81f commit 06dee01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contracts/SBTFactory.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ contract SBTFactory is ISBTFactory, OwnableUpgradeable {
2727
address[] calldata minters,
2828
bytes calldata identifier
2929
) external override onlyOwner returns (address) {
30+
require(sbtProxyMapping[identifier] == address(0), "Identifier already used");
31+
3032
// Create the implementation.
3133
address implementation = address(
3234
new SBT{salt: keccak256(identifier)}()

0 commit comments

Comments
 (0)