hasLock

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

Return

Whether the lock field is set.