capsule icon indicating copy to clipboard operation
capsule copied to clipboard

Prevent deployment transactions which destroy type_id

Open jjyr opened this issue 4 years ago • 2 comments

We need to check the deployment transactions before sent them; make sure there no type_id be destroyed. If a user intended to destroy type_id of a cell, the user must explicitly pass the type_id in the command line.

jjyr avatar Sep 03 '20 16:09 jjyr

It seems there is no possible destroy a type_id cell? https://github.com/nervosnetwork/capsule/blob/cdad051f705bc77c88cb849091920a87458d8a4f/src/deployment/deployment_process.rs#L212-L218

TheWaWaR avatar Apr 13 '21 08:04 TheWaWaR

Because once we lost the type ID, we have no way to resume it, this issue just suggests to add another mechainism to protect this.

jjyr avatar Apr 13 '21 16:04 jjyr