struct NftClosedMinterState { bytes nftScript; int quotaMaxLocalId; int nextLocalId; } library NftClosedMinterProto { static function stateHash(NftClosedMinterState _state) : bytes { return hash160(_state.nftScript + pack(_state.quotaMaxLocalId) + pack(_state.nextLocalId)); } }