hasLock

abstract fun hasLock(): Boolean
Lock script
.TW.Nervos.Proto.Script lock = 2;

Return

Whether the lock field is set.