Skip to content

Latest commit

 

History

History

can-update-without-ownership-lock

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

"Can Update Without Ownership" Lock

Warning

⚠️ This contract is testing purpose only.

This contract is a mock contract, and it is used for testing.

The security of this contract is not guaranteed.

Feature

This lock script is used to keep the total capacity of cells which use this lock script could not be decreased, but any non-owner users could update them.

Brief Introduction

It will return success when any follow condition is satisfied:

  • the args for this lock script is the result of calling ckb_hash::blake2b_256 on the witness of it.

  • there is no witness for this lock script, but total capacity of cells which use this lock script are not greater than total capacity of cells which use this lock script after this transaction.