Skip to content

Commit

Permalink
using same naming for _mint attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Dec 19, 2021
1 parent 07972e8 commit 9bc0cc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contracts/registry/DIDRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,21 @@ contract DIDRegistry is DIDFactory {
* @param _did refers to decentralized identifier (a byte32 length ID)
* @param _cap refers to the mint cap
* @param _royalties refers to the royalties to reward to the DID creator in the secondary market
* @param _preMint if is true mint directly the amount capped tokens and lock in the _lockAddress
* @param _mint if is true mint directly the amount capped tokens and lock in the _lockAddress
*/
function enableAndMintDidNft(
bytes32 _did,
uint256 _cap,
uint8 _royalties,
bool _preMint
bool _mint
)
public
onlyDIDOwner(_did)
returns (bool success)
{
didRegisterList.initializeNftConfig(_did, _cap, _royalties);

if (_preMint) {
if (_mint) {
mint(_did, _cap);
}

Expand All @@ -159,15 +159,15 @@ contract DIDRegistry is DIDFactory {
function enableAndMintDidNft721(
bytes32 _did,
uint8 _royalties,
bool _preMint
bool _mint
)
public
onlyDIDOwner(_did)
returns (bool success)
{
didRegisterList.initializeNft721Config(_did, _royalties);

if (_preMint) {
if (_mint) {
mint721(_did);
}

Expand Down

0 comments on commit 9bc0cc2

Please sign in to comment.