Skip to content

Commit

Permalink
Merge pull request #228 from kodadot/218-lock
Browse files Browse the repository at this point in the history
⚡ collection has lock
  • Loading branch information
vikiival authored Apr 11, 2023
2 parents 0f2c9be + d7da1de commit 7bb591d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mappings/v2/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export async function lockCollection(context: Context) {
const collection = await get<CollectionEntity>(context.store, CollectionEntity, interaction.id)
plsBe<CollectionEntity>(real, collection)
isOwnerOrElseError(collection, caller)
// TODO: implement lock
collection.max = Number(interaction.value)
collection.max = Number(collection.nftCount)

success(OPERATION, `${collection.id} from ${caller}`)
await context.store.save(collection)
Expand Down

0 comments on commit 7bb591d

Please sign in to comment.