Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Dec 17, 2021
1 parent 9436a21 commit 07972e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/registry/DIDRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ contract DIDRegistry is DIDFactory {
* @param _url refers to the url resolving the DID into a DID Document (DDO), limited to 2048 bytes.
* @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 it mints the ERC-1155 attached to the asset
* @param _mint if true it mints the ERC-1155 NFTs attached to the asset
* @param _activityId refers to activity
* @param _attributes refers to the provenance attributes
* @return size refers to the size of the registry after the register action.
Expand All @@ -70,7 +70,7 @@ contract DIDRegistry is DIDFactory {
string memory _url,
uint256 _cap,
uint8 _royalties,
bool _preMint,
bool _mint,
bytes32 _activityId,
string memory _attributes
)
Expand All @@ -83,7 +83,7 @@ contract DIDRegistry is DIDFactory {
hashDID(_didSeed, msg.sender),
_cap,
_royalties,
_preMint
_mint
);
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions test/unit/registry/MintableDIDRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ contract('Mintable DIDRegistry', (accounts) => {

await didRegistry.registerMintableDID(
didSeed, checksum, [], value, 20, 0, constants.activities.GENERATED, '', { from: owner })
await didRegistry.mint(did, 20, {from: owner})
await didRegistry.mint(did, 20, { from: owner })

let balance = await nft.balanceOf(owner, did)
assert.strictEqual(20, balance.toNumber())
Expand All @@ -122,7 +122,7 @@ contract('Mintable DIDRegistry', (accounts) => {
const checksum = testUtils.generateId()
await didRegistry.registerMintableDID(
didSeed, checksum, [], value, 10, 0, constants.activities.GENERATED, '', { from: owner })
await didRegistry.mint(did, 10, {from: owner})
await didRegistry.mint(did, 10, { from: owner })

const balance = await nft.balanceOf(owner, did)
assert.strictEqual(10, balance.toNumber())
Expand Down

0 comments on commit 07972e8

Please sign in to comment.